MockFacet (String fileName) { MockFacet facet = WriteAction.compute(() -> FacetManager.getInstance(myModule).addFacet(MockFacetType.getInstance(), "f", null)); facet.getConfiguration().setData(fileName); return facet; }