static private int removeEOFToken(YQLNode CST, ClientLogger logger) {
        if (CST.size() == 0) return 0;

        YQLNode child = CST.get(CST.size() - 1).getYQLNode();

        if (child.getASTClass() != Token.class) {
            return 0;
        }
        Node origNode = child.getOriginalGroupingNode();
        if (origNode.getType() != Token.TokenType.EOF) {
            return 0;
        }

        CST.removeChild(CST.size() - 1);
        return origNode.getLength();

    }
This function removes the EOF token, this token is often a dirty token that should be the beginning of a new query
@param CST - Concrete Syntax tree
@param logger - Logger
@return Number of chars in the EOF token
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/schemadocument/VespaGroupingParser.java