void (@NotNull PsiClass aClass) { if (aClass.isInterface() || aClass.isAnnotationType() || aClass.isEnum()) { return; } if (aClass instanceof PsiTypeParameter) { return; } if (!aClass.hasModifierProperty(PsiModifier.ABSTRACT)) { return; } if (!InheritanceUtil.hasOneInheritor(aClass)) { return; } registerClassError(aClass); }