@Override
  public void update(final @NotNull AnActionEvent e) {
    super.update(e);
    GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext());
    e.getPresentation().setEnabled(editor != null);
  }
@Override
  public void update(final @NotNull AnActionEvent e)