@Override
  public <F extends Facet<?>> void registerListener(@NotNull FacetTypeId<F> typeId, @NotNull ProjectWideFacetListener<? extends F> listener) {
    FacetEventsPublisher.getInstance(myProject).registerListener(typeId, new ProjectWideFacetListenerWrapper<>(listener));
  }
@Override
  public <F extends Facet<?>> void registerListener(@NotNull FacetTypeId<F> typeId, @NotNull ProjectWideFacetListener<? extends F> listener)