boolean (MemberInfo member) { if (myTargetClass != null) { final PsiMember m = member.getMember(); if (m instanceof PsiClassInitializer) { return !myTargetClass.isInterface(); } else if (m instanceof PsiMethod) { return !myTargetClass.isInterface() || PsiUtil.isLanguageLevel8OrHigher(myTargetClass); } else if (m instanceof PsiEnumConstant) { return myTargetClass.isEnum(); } } return super.isMemberEnabled(member); }