docs: public ResourceList getResourcesWithPath(final String resourcePath) {
          if (closed.get()) {
              throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
          }
          final ResourceList allWhitelistedResources = getAllResources();
          if (allWhitelistedResources.isEmpty()) {
              return ResourceList.EMPTY_LIST;
          } else {
              final String path = FileUtils.sanitizeEntryPath(resourcePath, /* removeInitialSlash = */ true);
              final ResourceList resourceList = getAllResourcesAsMap().get(path);
              return (resourceList == null ? new ResourceList(1) : resourceList);
          }
      }