@Override
    protected Action @NotNull [] createActions() {
      final Action okAction = getOKAction();
      assignMnemonic(getAddInCode(), okAction);
      final String externalName = JavaBundle.message("external.annotations.external.option");
      return new Action[]{okAction, new AbstractAction(externalName) {
        {
          assignMnemonic(externalName, this);
        }

        @Override
        public void actionPerformed(final ActionEvent e) {
          if (canBeHidden()) {
            setToBeShown(toBeShown(), true);
          }
          close(2);
        }
      }, getCancelAction()};
    }
@Override
    protected Action @NotNull [] createActions()