code: private DefaultPlaceholderId createNewId(Consumer<FactorySorterAndDeduplicator> consumer) {
      FactorySorterAndDeduplicator sorter = new FactorySorterAndDeduplicator(tagFactories);
  
      consumer.accept(sorter);
      return new DefaultPlaceholderId(name, sorter.asCollection(), registry);
    }
docs: Creates a new dynamic id based on the factories associated with this id
  and whatever additions are made by the specified consumer.
  
  @param consumer
  lambda that can update the sorter with additional tag factories
  @return
  the newly created id