void () { for (Module module : ModuleManager.getInstance(myProject).getModules()) { FacetManager manager = FacetManager.getInstance(module); ModifiableFacetModel model = manager.createModifiableModel(); for (Facet<?> facet : manager.getAllFacets()) { model.removeFacet(facet); } commit(model); } }