docs: public Map<String, ResourceList> asMap() {
          final Map<String, ResourceList> pathToResourceList = new HashMap<>();
          for (final Resource resource : this) {
              final String path = resource.getPath();
              ResourceList resourceList = pathToResourceList.get(path);
              if (resourceList == null) {
                  resourceList = new ResourceList(1);
                  pathToResourceList.put(path, resourceList);
              }
              resourceList.add(resource);
          }
          return pathToResourceList;
      }