boolean (@NotNull Collection<? extends Facet> facets) { for (Facet<?> facet : facets) { List<Facet> removed = myContext.myModulesConfigurator.getFacetsConfigurator().removeFacet(facet); myProjectStructureConfigurable.getFacetStructureConfigurable().removeFacetNodes(removed); } return true; }