String (Facet facet) { final ModifiableFacetModel model = myModifiableModels.get(facet.getModule()); if (model != null) { final String newName = model.getNewName(facet); if (newName != null) { return newName; } } return facet.getName(); }