@Override
  public void update(@NotNull AnActionEvent e) {
    final GuiEditor editor = FormEditingUtil.getActiveEditor(e.getDataContext());
    e.getPresentation().setVisible(editor != null && haveCustomComponents(editor));
  }
@Override
  public void update(@NotNull AnActionEvent e)