boolean (Project project, GlobalSearchScope scope, Processor<? super PsiClass> processor, PsiShortNamesCache cache, String name) { for (PsiClass psiClass : DumbService.getInstance(project).runReadActionInSmartMode(() -> cache.getClassesByName(name, scope))) { ProgressIndicatorProvider.checkCanceled(); if (!processor.process(psiClass)) { return false; } } return true; }