code: public static ClassPath from(ClassLoader classloader, Predicate<URI> predicate) throws IOException {
      Scanner scanner = new Scanner();
      for (Map.Entry<URI, ClassLoader> entry : getClassPathEntries(classloader, predicate).entrySet()) {
        scanner.scan(entry.getKey(), entry.getValue());
      }
      return new ClassPath(scanner.getResources());
    }
docs: Returns a {@code ClassPath} representing all classes and resources loadable from {@code
  classloader} and its parent class loaders that satisfy the given predicate.
  
  <p>Currently only {@link java.net.URLClassLoader} and only {@code file://} urls are supported.
  
  @throws java.io.IOException if the attempt to read class path resources (jar files or directories)
  failed.