List<VirtualFile> (Module[] modules) { List<VirtualFile> contentRoots = new ArrayList<>(); for (Module module : modules) { VirtualFile[] moduleContentRoots = ModuleRootManager.getInstance(module).getContentRoots(); assertEquals(1, moduleContentRoots.length); contentRoots.add(moduleContentRoots[0]); } return contentRoots; }