public FlattenedItem currentItem() {
        if (position >= items.size()) return null;
        return items.get(position);
    }
Returns the current term item to look at,
or null if there are no more elements
container-search/src/main/java/com/yahoo/prelude/semantics/engine/RuleEvaluation.java