public static void showError(final Project project, final @NlsContexts.DialogMessage String message) {
    if (ApplicationManager.getApplication().isUnitTestMode()) return;
    VcsImplUtil.showErrorMessage(project, message, VcsBundle.message("patch.apply.dialog.title"));
  }
public static void showError(final Project project, final @NlsContexts.DialogMessage String message)