ModifiableFacetModel (@NotNull Module module) { final ModulesConfigurator configurator = getModulesConfigurator(module.getProject()); if (configurator != null) { return configurator.getFacetsConfigurator().getOrCreateModifiableModel(module); } return FacetManager.getInstance(module).createModifiableModel(); }