void (@NotNull ClassInheritorsSearch.SearchParameters parameters, @NotNull Processor<? super PsiClass> consumer) { final PsiClass baseClass = parameters.getClassToProcess(); assert parameters.isCheckDeep(); assert parameters.isCheckInheritance(); ProgressIndicator progress = ProgressIndicatorProvider.getGlobalProgressIndicator(); if (progress != null) { progress.pushState(); String className = ReadAction.compute(baseClass::getName); progress.setText(className != null ? JavaIndexingBundle.message("psi.search.inheritors.of.class.progress", className) : JavaIndexingBundle.message("psi.search.inheritors.progress")); } try { processInheritors(parameters, consumer); } finally { if (progress != null) { progress.popState(); } } }