boolean (@NotNull String methodName, @Nullable PsiClass psiClass) { if (psiClass == null) return false; for (PsiMethod method : psiClass.findMethodsByName(methodName, false)) { final PsiClass containingClass = method.getContainingClass(); if (containingClass == null) return false; return INSPECTION_PROFILE_ENTRY.equals(containingClass.getQualifiedName()); } return isLastMethodDefinitionIn(methodName, psiClass.getSuperClass()); }