JpsPackagingElement (Element element) { String typeId = element.getAttributeValue(ID_ATTRIBUTE); if (typeId == null) return null; JpsPackagingElementSerializer<?> serializer = findElementSerializer(typeId); if (serializer != null) { return serializer.load(element); } return null; }