@Override
  public void beforeFacetRenamed(@NotNull Facet facet) {
    FacetPointersManager manager = FacetPointersManager.getInstance(myProject);
    if (manager instanceof FacetPointersManagerImpl managerImpl) {
      final FacetPointerImpl pointer = managerImpl.get(FacetPointersManager.constructId(facet));
      if (pointer != null) {
        pointer.refresh();
      }
    }
  }
@Override
  public void beforeFacetRenamed(@NotNull Facet facet)