Iterator it = getLayers().iterator(); while (it.hasNext()) { ((Layer)it.next()).findAndInit(obj); }
for (Iterator it = getLayers().iterator(); it.hasNext(); ((Layer)it.next()).findAndInit(obj)) {}
    public void findAndInit(Object obj) {        if (obj instanceof MouseDelegator) {            ((MouseDelegator)obj).addPropertyChangeListener(this);        }        Iterator it = getLayers().iterator();        while (it.hasNext()) {            ((Layer)it.next()).findAndInit(obj);        }    }