@Override
    public @NotNull TokenEmitter argument(final @NotNull Component arg) {
      final String serialized = MiniMessageSerializer.serialize(arg, this.resolver, this.strict);
      return this.argument(serialized, QuotingOverride.QUOTED); // always quote tokens
    }
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