String (Collection<RawRuntimeModuleDescriptor> descriptors, String moduleName) { Set<String> classpath = new LinkedHashSet<>(); Map<String, RawRuntimeModuleDescriptor> descriptorMap = new HashMap<>(); for (RawRuntimeModuleDescriptor descriptor : descriptors) { descriptorMap.put(descriptor.getId(), descriptor); } collectClasspathEntries(moduleName, descriptorMap, new HashSet<String>(), classpath); return String.join(" ", classpath); }