boolean (@NotNull RefManager manager, @NotNull GlobalJavaInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor processor) { manager.iterate(new RefJavaVisitor() { @Override public void visitMethod(@NotNull RefMethod refMethod) { if (processor.getDescriptions(refMethod) == null) return; if (PsiModifier.PRIVATE.equals(refMethod.getAccessModifier())) return; globalContext.enqueueMethodUsagesProcessor(refMethod, new GlobalJavaInspectionContext.UsagesProcessor() { @Override public boolean process(PsiReference psiReference) { processor.ignoreElement(refMethod); return false; } }); } }); return false; }