void (@NotNull PsiClass aClass) { if (aClass.isInterface() || aClass.isAnnotationType() || aClass.isEnum() || aClass instanceof PsiTypeParameter) { return; } final PsiClass superClass = aClass.getSuperClass(); if (superClass == null) { return; } final String superclassName = superClass.getQualifiedName(); if (!CommonClassNames.JAVA_LANG_THROWABLE.equals(superclassName)) { return; } registerClassError(aClass, aClass); }