@Override
    public Object next() {
        if (node == null)
            throw new NoSuchElementException();
        PsiElement ret = node;
        node = getNextNode(node);
        while (!isXPathNode(node))
            node = getNextNode(node);
        return ret;
    }
@Override
    public Object next()