@Override
  protected Action @NotNull [] createActions() {
    return ArrayUtil.append(super.createActions(), new AbstractAction(IdeBundle.message("button.clear.and.close")) {
      @Override
      public void actionPerformed(ActionEvent e) {
        doClearAction();
      }
    });
  }
@Override
  protected Action @NotNull [] createActions()