@Override
  protected Action @NotNull [] createActions() {
    List<Action> actions = new ArrayList<>();
    actions.add(getOKAction());
    if (myBuilder.customAction != null) {
      actions.add(new DialogWrapperExitAction(myBuilder.customAction.first, myBuilder.customAction.second));
    }
    actions.add(getCancelAction());
    return actions.toArray(new Action[0]);
  }
@Override
  protected Action @NotNull [] createActions()