public PsiClass findClass(@NotNull final String qualifiedName, @NotNull GlobalSearchScope scope) { ProgressIndicatorProvider .checkCanceled(); // We hope this method is being called often enough to cancel daemon // processes smoothly PsiClass aClass = javaFileManager.findClass(qualifiedName, scope); if (aClass != null) { return aClass; } for (PsiElementFinder finder : extensionPsiElementFinders) { aClass = finder.findClass(qualifiedName, scope); if (aClass != null) { return aClass; } } return null; }
@Override public PsiClass findClass(@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { return finder.findClass(qualifiedName, scope); }