@Override
    public boolean styleClaimed(final @NotNull String claimId) {
      return this.claimedStyleElements.contains(claimId);
    }
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