@SuppressWarnings("HardCodedStringLiteral")
  public void notifyError(@NonNls @Nullable String displayId,
                          @Nullable HgCommandResult result,
                          @NlsContexts.NotificationTitle @NotNull String failureTitle,
                          @NlsContexts.NotificationContent @NotNull String failureDescription,
                          NotificationListener listener) {
    List<String> err = result != null ? result.getErrorLines() : Collections.emptyList();
    HtmlBuilder sb = new HtmlBuilder();
    if (!StringUtil.isEmptyOrSpaces(failureDescription)) {
      sb.append(failureDescription);
    }
    else {
      sb.append(failureTitle);
    }
    if (!err.isEmpty()) {
      sb.br();
      sb.appendWithSeparators(HtmlChunk.br(), ContainerUtil.map(err, HtmlChunk::text));
    }
    String errorMessage = sb.wrapWithHtmlBody().toString();

    VcsNotifier.getInstance(myProject).notifyError(displayId, failureTitle, errorMessage, listener);
  }
@SuppressWarnings("HardCodedStringLiteral")
  public void notifyError(@NonNls @Nullable String displayId,
                          @Nullable HgCommandResult result,
                          @NlsContexts.NotificationTitle @NotNull String failureTitle,
                          @NlsContexts.NotificationContent @NotNull String failureDescription,
                          NotificationListener listener)