public static void addFromProject(String name, @NotNull final Project project, @NotNull final List<ResolveResult> results) { Collection<TheRAssignmentStatement> statements = TheRAssignmentNameIndex.find(name, project, new ProjectScopeImpl(project, FileIndexFacade .getInstance(project))); for (TheRAssignmentStatement statement : statements) { final PsiElement assignee = statement.getAssignee(); if (assignee == null) continue; results.add(new PsiElementResolveResult(statement)); } }
@NotNull @Override public GlobalSearchScope buildProjectScope() { return new ProjectScopeImpl(myProject, myFileIndexFacade); }
@Override public GlobalSearchScope buildProjectScope() { return new ProjectScopeImpl(myProject, myFileIndexFacade); }