tomd = findClosestTest(omd, i, (OMGeometry) iterator.previous(),
tomd = findClosestTest(omd, i--, (OMGeometry) iterator.previous(),
    protected synchronized OMDist _findClosest(int x, int y, float limit, boolean resetSelect) {        OMDist omd = new OMDist();        OMDist tomd;        ListIterator iterator;        int i;        if (size() != 0) {            if (traverseMode == FIRST_ADDED_ON_TOP) {                i = 0;                iterator = graphics.listIterator();                while (iterator.hasNext()) {                    tomd = findClosestTest(omd, i, (OMGeometry) iterator.next(),                                            x, y, limit, resetSelect);                    if (tomd == null) continue;                    omd = tomd;  // for style                    if (omd.d == 0) break;                    i++;                }            } else {                i = graphics.size();                iterator = graphics.listIterator(i);                while (iterator.hasPrevious()) {                    tomd = findClosestTest(omd, i, (OMGeometry) iterator.previous(),                                            x, y, limit, resetSelect);                    if (tomd == null) continue;                    omd = tomd;  // for style                    if (omd.d == 0) break;                    i--;                }            }        }        if (Debug.debugging("omgraphics")) {            int size = size();            if (omd.omg != null && isVague()) {                omd.omg = this;                Debug.output(this.getClass().getName() + "(" + size +                              ") detecting hit and vagueness, returning " + omd);            } else if (omd.omg != null && !isVague()) {                Debug.output(this.getClass().getName() + "(" + size +                              ") detecting hit, no vagueness, returning contained "  + omd);            } else {                Debug.output(this.getClass().getName() + "(" + size +                              ") omd.omg " + (omd.omg == null?"== null":"!= null"));            }        }        return omd;    }