boolean (@NotNull final RefManager manager, @NotNull final GlobalJavaInspectionContext globalContext, @NotNull final ProblemDescriptionsProcessor processor) { manager.iterate(new RefJavaVisitor() { @Override public void visitMethod(@NotNull final RefMethod refMethod) { if (processor.getDescriptions(refMethod) == null) return; if (PsiModifier.PRIVATE.equals(refMethod.getAccessModifier())) return; globalContext.enqueueDerivedMethodsProcessor(refMethod, derivedMethod -> { processor.ignoreElement(refMethod); return true; }); } }); return false; }