code: public ClassGraph overrideClasspath(final Iterable<?> overrideClasspathElements) {
          final String overrideClasspath = JarUtils.pathElementsToPathStr(overrideClasspathElements);
          if (overrideClasspath.isEmpty()) {
              throw new IllegalArgumentException("Can't override classpath with an empty path");
          }
          overrideClasspath(overrideClasspath);
          return this;
      }
docs: Override the automatically-detected classpath with a custom path. Causes system ClassLoaders and the
  java.class.path system property to be ignored. Also causes modules not to be scanned.
  
  <p>
  Works for Iterables of any type whose toString() method resolves to a classpath element string, e.g. String,
  File or Path.
  
  @param overrideClasspathElements
  The custom classpath to use for scanning, with path elements separated by File.pathSeparatorChar.
  @return this (for method chaining).