void () { super.createDefaultActions(); myCloseAction = new AbstractAction(IdeBundle.message("registry.close.action.text")) { @Override public void actionPerformed(@NotNull ActionEvent e) { processClose(); doOKAction(); } }; myCloseAction.putValue(DialogWrapper.DEFAULT_ACTION, true); }