public static void loadFacets(JpsModule module, @Nullable Element facetManagerElement) {
    if (facetManagerElement == null) return;
    FacetManagerState state = XmlSerializer.deserialize(facetManagerElement, FacetManagerState.class);
    addFacets(module, state.facets, null);
  }
public static void loadFacets(JpsModule module, @Nullable Element facetManagerElement)