Collection<String> (@NotNull CompileContext context, @NotNull ModuleChunk chunk) { return getModuleDependencies(chunk).stream() .flatMap(module -> buildModuleTargets(module, chunk.containsTests()).stream()) .flatMap(target -> target.getOutputRoots(context).stream()) .map(file -> FileUtil.toCanonicalPath(file.getPath())) .collect(Collectors.toSet()); }