void (@NotNull PsiClass aClass) { // note: no call to super if (aClass.isEnum()) { return; } if (aClass instanceof PsiTypeParameter) { return; } final int inheritanceDepth = getInheritanceDepth(aClass, new HashSet<>()); if (inheritanceDepth <= getLimit()) { return; } registerClassError(aClass, Integer.valueOf(inheritanceDepth)); }