void (@NotNull PsiMethod method) { if (method.isConstructor()) { return; } final PsiClass containingClass = method.getContainingClass(); if (containingClass == null) { return; } if (containingClass.isInterface() || containingClass.isAnnotationType()) { return; } if (!containingClass.hasModifierProperty(PsiModifier.ABSTRACT)) { return; } if (method.hasModifierProperty(PsiModifier.ABSTRACT) || method.hasModifierProperty(PsiModifier.NATIVE) || method.hasModifierProperty(PsiModifier.FINAL)) { return; } if (!MethodUtils.isEmpty(method)) { return; } if (FindSuperElementsHelper.getSiblingInheritedViaSubClass(method) != null) { // it may be an explicit intention to have non-abstract method here in order to sibling-inherit the method in subclass return; } registerMethodError(method); }