JpsLibraryFilesPackagingElement (Element element) { String level = element.getAttributeValue("level"); String libraryName = element.getAttributeValue("name"); String moduleName = element.getAttributeValue("module-name"); JpsElementReference<? extends JpsCompositeElement> parentReference; if (moduleName != null) { parentReference = JpsElementFactory.getInstance().createModuleReference(moduleName); } else { parentReference = JpsLibraryTableSerializer.createLibraryTableReference(level); } return JpsPackagingElementFactory.getInstance() .createLibraryElement(JpsElementFactory.getInstance().createLibraryReference(libraryName, parentReference)); }