code: private ArtifactNotification collectNotificationsForPrefix(String prefix, Set<String> paths) {
          Set<String> gatheredPaths = new HashSet<String>();
          if ("/".equals(prefix)) {
              gatheredPaths.addAll(paths);
          } else {
              for (String path : paths) {
                  if (path.startsWith(prefix + "/") || path.equals(prefix))
                      gatheredPaths.add(path);
              }
          }
          return new DefaultArtifactNotification(root, gatheredPaths);
      }
docs: convert paths starting with prefix into notificatons