PsiMethod (PsiMethod method) { final PsiMethod superMethod = MethodUtils.getSuper(method); if (superMethod == null || superMethod.hasModifierProperty(PsiModifier.ABSTRACT) || ignoreDefaultSuperMethods && superMethod.hasModifierProperty(PsiModifier.DEFAULT)) { return null; } return superMethod; }