private boolean isAtIndex(final List<TokenType> tokenTypes, final TokenType tokenType, final int idx) {
        return tokenTypes != null
               && tokenTypes.size() > idx
               && tokenTypes.get(idx) == tokenType;
    }
Here to help testing, so we don't have to work out the row/col postitions
stroom-query/stroom-query-impl/src/main/java/stroom/query/impl/QueryServiceImpl.java