void (@NotNull PsiClass aClass) { // no call to super, so it doesn't drill down into inner classes if (aClass instanceof PsiTypeParameter) { return; } final String className = aClass.getName(); if (className == null) { return; } @NonNls final String exception = "Exception"; if (className.endsWith(exception)) { return; } if (!InheritanceUtil.isInheritor(aClass, CommonClassNames.JAVA_LANG_EXCEPTION)) { return; } registerClassError(aClass); }