@Override
  public boolean isEnabledOnElements(PsiElement @NotNull [] elements) {
    if (elements.length == 1) {
      return elements[0] instanceof PsiClass && elements[0].getLanguage().isKindOf(JavaLanguage.INSTANCE) || isAcceptedField(elements[0]);
    }
    else if (elements.length > 1) {
      for (PsiElement element : elements) {
        if (!isAcceptedField(element)) {
          return false;
        }
      }
      return true;
    }
    return false;
  }
@Override
  public boolean isEnabledOnElements(PsiElement @NotNull [] elements)