void () { super.createDefaultActions(); myCloseAction = new AbstractAction(GradleBundle.message("gradle.daemons.close")) { @Override public void actionPerformed(@NotNull ActionEvent e) { doOKAction(); } }; myCloseAction.putValue(DialogWrapper.DEFAULT_ACTION, true); }