public boolean currentIs(Token.Kind kind) {
        Token current = current();

        if (current == null) {
            return false;
        }
        return current.kind == kind;
    }
Returns whether the current token is of the given kind.
False also if there is no token at the current position
container-search/src/main/java/com/yahoo/prelude/query/parser/TokenPosition.java