boolean (@NotNull PsiMethod method) { PsiClass methodClass = method.getContainingClass(); if (ignoreAnonymousClassMethods && methodClass instanceof PsiAnonymousClass) { return false; } if (hasOverrideAnnotation(method)) { return false; } LanguageLevel level = PsiUtil.getLanguageLevel(method); if (JavaPsiRecordUtil.getRecordComponentForAccessor(method) != null) { return true; } final boolean useJdk6Rules = level.isAtLeast(LanguageLevel.JDK_1_6); if (useJdk6Rules) { if (!isJdk6Override(method, methodClass)) { return false; } } else if (!isJdk5Override(method, methodClass)) { return false; } return true; }