void popAll() {
      while (this.tagLevel > 0) {
        final String tag = this.activeTags[--this.tagLevel];
        if (tag != MARK) {
          this.emitClose(tag);
        }
      }
    }
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