private static Stream<VirtualFile> getDependenciesContentRoots(Module module) {
    final ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(module);
    final Stream<Module> dependencies = Arrays.stream(moduleRootManager.getDependencies());
    return dependencies.flatMap(d -> Arrays.stream(ModuleRootManager.getInstance(d).getContentRoots()));
  }
private static Stream<VirtualFile> getDependenciesContentRoots(Module module)