@Override
      protected Action @NotNull [] createActions() {
        List<Action> actions = new ArrayList<>(Arrays.asList(super.createActions()));
        Action applyAction = new DialogWrapperAction(IdeBundle.message("dialog.apply")) {
          @Override
          protected void doAction(ActionEvent e) {
            apply();
            setEnabled(false);
          }
        };
        actions.add(applyAction);
        panel.setApplyAction(applyAction);

        return actions.toArray(Action[]::new);
      }
@Override
      protected Action @NotNull [] createActions()