public final int lastEndIndex() {
    return this.lastIndex;
  }
The last accepted end index, or {@code -1} if no match has been accepted.

@return the last accepted end index
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/internal/parser/match/MatchedTokenConsumer.java