public Item getRoot() {
        if (getItemCount() == 0) return null;
        return getItem(0);
    }
Returns the query root. This is null if this is a null query.
container-search/src/main/java/com/yahoo/search/query/QueryTree.java