code: 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);
          }
      }
docs: Get the list of all resources found in whitelisted packages that have the given path, relative to the package
  root of the classpath element. May match several resources, up to one per classpath element.
  
  @param resourcePath
  A complete resource path, relative to the classpath entry package root.
  @return A list of all resources found in whitelisted packages that have the given path, relative to the
  package root of the classpath element. May match several resources, up to one per classpath element.