Facet<MockFacetConfiguration> (MockFacet parent, final String name, @Nullable ProjectModelExternalSource externalSource) { ModifiableFacetModel model = getFacetManager().createModifiableModel(); final Facet<MockFacetConfiguration> facet = createSubFacet(parent, name); model.addFacet(facet, externalSource); commit(model); return facet; }