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