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