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

        if (current == null || current.kind != kind) {
            return false;
        }

        skip();
        return true;
    }
Skips one or zero items of the given kind.

@return true if one item was skipped, false if none was, or if there are no more tokens
container-search/src/main/java/com/yahoo/prelude/query/parser/TokenPosition.java