int (@NotNull @NlsContexts.DialogTitle String title, @NotNull Function<? super String, @Nls String> message) { String action = IdeBundle.message(ApplicationManager.getApplication().isRestartCapable() ? "ide.restart.action" : "ide.shutdown.action"); return Messages.showYesNoDialog(message.apply(action), title, action, IdeBundle.message("ide.notnow.action"), Messages.getQuestionIcon()); }