@Override
  protected Action @NotNull [] createActions() {
    if (myMode == Mode.Simple) {
      return new Action[] { getCancelAction() };
    }
    return super.createActions();
  }
@Override
  protected Action @NotNull [] createActions()