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