@YesNoResult
  public static int showYesNoDialog(@Nullable Project project,
                                    @NotNull @DialogMessage String message,
                                    @NotNull @DialogTitle String title,
                                    @NotNull @NlsContexts.Button String yesText,
                                    @NotNull @NlsContexts.Button String noText,
                                    @Nullable Icon icon) {
    return MessageDialogBuilder.yesNo(title, message)
      .yesText(yesText)
      .noText(noText)
      .icon(icon)
      .ask(project) ? YES : NO;
  }
@YesNoResult
  public static int showYesNoDialog(@Nullable Project project,
                                    @NotNull @DialogMessage String message,
                                    @NotNull @DialogTitle String title,
                                    @NotNull @NlsContexts.Button String yesText,
                                    @NotNull @NlsContexts.Button String noText,
                                    @Nullable Icon icon)