MockFacet (final MockFacet facet, @Nullable ProjectModelExternalSource externalSource) { ModifiableFacetModel model = getFacetManager().createModifiableModel(); model.addFacet(facet, externalSource); commit(model); return facet; }