List<Path> (@NotNull Element root) { Element moduleManager = JDomSerializationUtil.findComponent(root, JpsProjectLoader.MODULE_MANAGER_COMPONENT); Element modules = moduleManager == null ? null : moduleManager.getChild(JpsProjectLoader.MODULES_TAG); if (modules == null) { return Collections.emptyList(); } ExpandMacroToPathMap macros = createExpandMacroMap(); List<Path> files = new ArrayList<>(); for (Element module : modules.getChildren(JpsProjectLoader.MODULE_TAG)) { String filePath = module.getAttributeValue(JpsProjectLoader.FILE_PATH_ATTRIBUTE); if (filePath != null) { filePath = macros.substitute(filePath, true); files.add(Paths.get(filePath)); } } return files; }