public boolean hasEndAnchor() {
        return getItem(getItemCount()-1) instanceof MarkerWordItem
               && ((MarkerWordItem)getItem(getItemCount()-1)).isEndAnchor();
    }
Returns whether the last item of this is an end anchor
container-search/src/main/java/com/yahoo/prelude/query/UriItem.java