use of com.intellij.compiler.CompilerReferenceService in project intellij-community by JetBrains.
the class JavaDirectInheritorsSearcher method performSearchUsingCompilerIndices.
private static CompilerDirectHierarchyInfo performSearchUsingCompilerIndices(@NotNull DirectClassInheritorsSearch.SearchParameters parameters, @NotNull SearchScope useScope, @NotNull Project project) {
if (!(useScope instanceof GlobalSearchScope))
return null;
SearchScope scope = parameters.getScope();
if (!(scope instanceof GlobalSearchScope))
return null;
PsiClass searchClass = ReadAction.compute(() -> (PsiClass) PsiUtil.preferCompiledElement(parameters.getClassToProcess()));
final CompilerReferenceService compilerReferenceService = CompilerReferenceService.getInstance(project);
return compilerReferenceService.getDirectInheritors(searchClass, (GlobalSearchScope) useScope, (GlobalSearchScope) scope, JavaFileType.INSTANCE);
}
Aggregations