docs: public ClassLoader getClassLoader(MavenProject project, final ClassLoader parent, Log log) throws DependencyResolutionRequiredException {
  
          @SuppressWarnings("unchecked")
          List<String> classpathElements = project.getCompileClasspathElements();
  
          final List<URL> classpathUrls = new ArrayList<>(classpathElements.size());
  
          for (String classpathElement : classpathElements) {
  
              try {
                  log.debug("Adding project artifact to classpath: " + classpathElement);
                  classpathUrls.add(new File(classpathElement).toURI().toURL());
              } catch (MalformedURLException e) {
                  log.debug("Unable to use classpath entry as it could not be understood as a valid URL: " + classpathElement, e);
              }
  
          }
  
          return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              @Override
              public ClassLoader run() {
                  return new URLClassLoader(classpathUrls.toArray(new URL[classpathUrls.size()]), parent);
              }
          });
  
      }