int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Button String okText, @NlsContexts.Button String cancelText, Icon icon) { return MessageDialogBuilder.okCancel(title, message).yesText(okText).noText(cancelText).icon(icon).guessWindowAndAsk() ? OK : CANCEL; }