@TestOnly
  public @NotNull Pair<CharSequence, TemplateDataElementType.RangeCollector> applyToText(@NotNull CharSequence text,
                                                                                         @NotNull TemplateDataElementType anyType) {
    RangeCollectorImpl collector = new RangeCollectorImpl(anyType);
    return Pair.create(collector.applyTemplateDataModifications(text, this), collector);
  }
@TestOnly
  public @NotNull Pair<CharSequence, TemplateDataElementType.RangeCollector> applyToText(@NotNull CharSequence text,
                                                                                         @NotNull TemplateDataElementType anyType)