boolean (@NotNull PsiMethod method, @NotNull Consumer<? super PsiMethod> consumer) { return ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { for (PsiMethod psiMethod : OverridingMethodsSearch.search(method)) { ReadAction.run(() -> { if (psiMethod.isPhysical() && !NullableStuffInspectionBase.shouldSkipOverriderAsGenerated(psiMethod)) { consumer.accept(psiMethod); } }); } }, JavaAnalysisBundle.message("searching.for.overriding.methods"), true, method.getProject()); }