docs: private ClassLoader buildExtendedClassloader() {
          final List<URL> classpathUrls = new ArrayList<>();
          for (String pathElement : getClasspath().list()) {
              try {
                  classpathUrls.add(new File(pathElement).toURI().toURL());
              } catch (MalformedURLException e) {
                  throw new BuildException("Unable to use classpath entry as it could not be understood as a valid URL: " + pathElement, e);
              }
          }
  
          final ClassLoader parentClassloader = Thread.currentThread().getContextClassLoader();
  
          return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              @Override
              public ClassLoader run() {
                  return new URLClassLoader(classpathUrls.toArray(new URL[classpathUrls.size()]), parentClassloader);
              }
          });
      }