public static int showOkCancelDialog(@NotNull Project project,
                                       @NotNull @DialogMessage String message,
                                       @NotNull @DialogTitle String title,
                                       @NotNull @Button String okButtonText,
                                       @NotNull @Button String cancelButtonText,
                                       @Nullable Icon icon) {
    return dialogManager().showMessageDialog(project, message, title, new String[]{okButtonText, cancelButtonText}, 0, icon);
  }
public static int showOkCancelDialog(@NotNull Project project,
                                       @NotNull @DialogMessage String message,
                                       @NotNull @DialogTitle String title,
                                       @NotNull @Button String okButtonText,
                                       @NotNull @Button String cancelButtonText,
                                       @Nullable Icon icon)