boolean (@NotNull Collection<? extends Facet> facets) { for (Facet facet : facets) { List<Facet> removed = myContext.myModulesConfigurator.getFacetsConfigurator().removeFacet(facet); myProjectStructureConfigurable.getModulesConfig().removeFacetNodes(removed); for (Facet removedFacet : removed) { myContext.getDaemonAnalyzer().removeElement(new FacetProjectStructureElement(myContext, removedFacet)); } } return true; }