@Override
    public @NotNull Collector text(final @NotNull String text) {
      this.completeTag();
      // escape '\' and '<'
      appendEscaping(this.consumer, text, TEXT_ESCAPES, true);
      return this;
    }
mark tag boundaries within the stack, without needing to mess with typing too much.
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/MiniMessageSerializer.java