void (@NotNull PsiClass aClass) { super.visitClass(aClass); if (!aClass.isInterface() || aClass.isAnnotationType() || aClass.hasModifierProperty(PsiModifier.SEALED) || AnnotationUtil.isAnnotated(aClass, CommonClassNames.JAVA_LANG_FUNCTIONAL_INTERFACE, 0)) { return; } if (LambdaHighlightingUtil.checkInterfaceFunctional(aClass) != null) { return; } MethodSignature signature = LambdaUtil.getFunction(aClass); if (signature == null || signature.getTypeParameters().length > 0) { return; } registerClassError(aClass, aClass); }