void () { final Iterator<Set<UiActivity>> keyIterator = myActivities2Object.keySet().iterator(); while (keyIterator.hasNext()) { Set<UiActivity> eachKey = keyIterator.next(); final BusyImpl busy = myActivities2Object.get(eachKey); busy.onReady(); if (busy.isReady()) { keyIterator.remove(); myObject2Activities.remove(busy); } } }