void (@NotNull String facetTypeId, @NotNull String facetName, Element configuration) { Element componentElement = JDomSerializationUtil.findOrCreateComponentElement(getRootElement(), JpsFacetSerializer.FACET_MANAGER_COMPONENT_NAME); Element facetElement = new Element(JpsFacetSerializer.FACET_TAG); facetElement.setAttribute(JpsFacetSerializer.TYPE_ATTRIBUTE, facetTypeId); facetElement.setAttribute(JpsFacetSerializer.NAME_ATTRIBUTE, facetName); configuration.setName(JpsFacetSerializer.CONFIGURATION_TAG); facetElement.addContent(configuration); componentElement.addContent(facetElement); }