@NotNull
    private Notification prepareNotification(@NotNull UpdateInfoTree tree,
                                             boolean someSessionWasCancelled,
                                             @NotNull List<? extends UpdateSession> updateSessions) {
      int allFilesCount = getUpdatedFilesCount();

      String title = someSessionWasCancelled
                     ? VcsBundle.message("update.notification.title.project.partially.updated")
                     : VcsBundle.message("update.notification.title.count.files.updated", allFilesCount);

      HtmlBuilder content = new HtmlBuilder();
      content.append(someSessionWasCancelled
                     ? HtmlChunk.text(VcsBundle.message("update.notification.content.files.updated", allFilesCount))
                     : prepareScopeUpdatedText(tree));

      List<HtmlChunk> additionalContent = JBIterable.from(updateSessions)
        .map(UpdateSession::getAdditionalNotificationContent)
        .filterNotNull()
        .map(HtmlChunk::raw)
        .toList();
      if (!additionalContent.isEmpty()) {
        if (!content.isEmpty()) {
          content.append(HtmlChunk.br());
        }
        content.appendWithSeparators(HtmlChunk.text(", "), additionalContent);
      }


      NotificationType type = someSessionWasCancelled
                              ? NotificationType.WARNING
                              : NotificationType.INFORMATION;


      return VcsNotifier.standardNotification()
        .createNotification(title, content.toString(), type).setDisplayId(VcsNotificationIdsHolder.PROJECT_PARTIALLY_UPDATED);
    }
@NotNull
    private Notification prepareNotification(@NotNull UpdateInfoTree tree,
                                             boolean someSessionWasCancelled,
                                             @NotNull List<? extends UpdateSession> updateSessions)