@Override
    public boolean isMemberEnabled(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.isAvailable(JavaFeature.EXTENSION_METHODS, myTargetClass);
        }
        else if (m instanceof PsiEnumConstant) {
          return myTargetClass.isEnum();
        }
      }
      return super.isMemberEnabled(member);
    }
@Override
    public boolean isMemberEnabled(MemberInfo member)