boolean (@NotNull Project project, @NotNull GlobalSearchScope scope, @NotNull Processor<? super String> processor) { boolean success = DumbService.getInstance(project).runReadActionInSmartMode(() -> PsiShortNamesCache.getInstance(project).processAllClassNames(s -> { ProgressManager.checkCanceled(); return processor.process(s); }, scope, null)); ProgressManager.checkCanceled(); return success; }