public StringTagParseException makeError(final String message) {
    return new StringTagParseException(message, this.sequence, this.index);
  }
If the next non-whitespace character is {@code token}, advance past it.

<p>This method always consumes whitespace.</p>

@param token next non-whitespace character to query
@return if the next non-whitespace character is {@code token}
nbt/src/main/java/net/kyori/adventure/nbt/CharBuffer.java