boolean (@NotNull PsiClass psiClass) { return ReadAction.compute(() -> { if (psiClass.isInterface()) { return false; } final PsiClass superClass = psiClass.getSuperClass(); if (superClass == null || !superClass.isValid()) { return true; } boolean isJavaLangObject = CommonClassNames.JAVA_LANG_OBJECT.equals(superClass.getQualifiedName()); return !isJavaLangObject; }); }