code: public static void populateModuleSpecWithAppImports(ModuleSpec.Builder moduleSpecBuilder,
              ClassLoader appClassLoader,
              Set<String> appPackages) {
          Objects.requireNonNull(moduleSpecBuilder, "moduleSpecBuilder");
          Objects.requireNonNull(appClassLoader, "classLoader");
          moduleSpecBuilder.addDependency(DependencySpec.createClassLoaderDependencySpec(appClassLoader, appPackages, false));
      }
docs: Populates a {@link ModuleSpec} with a dependency on application runtime packages
  specified as a set of package paths, loaded within the given classloader. This is the
  primary way that a module gains access to packages defined in the application classloader.
  This dependency is NOT rexported to downstream modules.
  
  @param moduleSpecBuilder builder to populate
  @param appClassLoader a classloader the application classloader.
  @param appPackages the global set of application package paths.