default boolean isCurrentLexeme(CharSequence chars) {
        CharSequence lexeme = getCurrentTokenLexeme();
        int testLength = chars.length();
        if (lexeme.length() != testLength) {
            return false;
        }
        for (int i = 0; i < testLength; i++) {
            if (lexeme.charAt(i) != chars.charAt(i)) {
                return false;
            }
        }
        return true;
    }
Test if the current token lexeme is equal to the give {@code chars}.

@param chars Characters to compare the current lexeme against.
@return Returns true if the current lexeme is equal to {@code chars}.
smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlTokenizer.java