int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Button String yesText, @NlsContexts.Button String noText, @Nullable Icon icon) { return MessageDialogBuilder.yesNo(title, message) .yesText(yesText) .noText(noText) .icon(icon) .guessWindowAndAsk() ? YES : NO; }