public static boolean showConfirmDiscardChangesDialog(@NotNull JComponent parent,
                                                        @NotNull @Nls String actionName,
                                                        boolean contentWasModified) {
    if (!contentWasModified) {
      return true;
    }
    return MessageDialogBuilder
      .yesNo(actionName, DiffBundle.message("label.merge.unsaved.changes.discard.and.do.anyway",
                                            actionName.toLowerCase(DynamicBundle.getLocale())))
      .yesText(DiffBundle.message("button.discard.changes.and.do", actionName))
      .noText(DiffBundle.message("button.continue.merge"))
      .ask(parent);
  }
public static boolean showConfirmDiscardChangesDialog(@NotNull JComponent parent,
                                                        @NotNull @Nls String actionName,
                                                        boolean contentWasModified)