PsiClass (@NotNull String qualifiedName, @NotNull GlobalSearchScope scope) { if (shouldUseSlowResolve()) { PsiClass[] classes = findClassesInDumbMode(qualifiedName, scope); if (classes.length != 0) { return classes[0]; } return null; } List<PsiElementFinder> finders = filteredFinders(); Predicate<PsiClass> classesFilter = getFilterFromFinders(scope, finders); for (PsiElementFinder finder : finders) { PsiClass aClass = finder.findClass(qualifiedName, scope); if (aClass != null && (classesFilter == null || classesFilter.test(aClass))) { return aClass; } } return null; }