@Override
  public int endIndex() {
    if (this.tokens.length == 0) return LOCATION_UNKNOWN;
    return this.tokens[this.tokens.length - 1].endIndex();
  }
Sets the tokens associated with this parsing error.

@param tokens the tokens for this error
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/internal/parser/ParsingExceptionImpl.java