boolean (@Nullable PsiClass baseClass, @NotNull PsiElement context) { if (baseClass == null || !PsiUtil.hasDefaultConstructor(baseClass, true)) return false; return !PsiUtil.isLanguageLevel8OrHigher(context) || !LambdaUtil.isFunctionalClass(baseClass); }