void addLibraryResolveError(@NotNull RepositoryLibraryProperties lib) {
    ThreadingAssertions.assertEventDispatchThread();

    myErrors.add(lib.getMavenId());
    String message;
    int limit = 10;
    if (myErrors.size() < limit) {
      message = JavaUiBundle.message("notification.content.no.files.were.downloaded",
                                     StringUtil.join(myErrors, ", "));

    }
    else {
      message = JavaUiBundle.message("notification.content.no.files.were.downloaded.multiple",
                                     StringUtil.join(ContainerUtil.getFirstItems(myErrors, limit), ", "),
                                     myErrors.size() - limit);
    }
    setContent(message);
    expire();
    Notifications.Bus.notify(this);
  }
void addLibraryResolveError(@NotNull RepositoryLibraryProperties lib)