void (Object element, final ActionCallback callback) { if (element == null || myUi.getSelectedElements().contains(element)) { callback.setDone(); } else { final Object nextElement = myUi.getTreeStructure().getParentElement(element); if (nextElement == null) { callback.setDone(); } else { myUi.select(nextElement, new TreeRunnable("UpdaterTreeState.processNextHang") { @Override public void perform() { processNextHang(nextElement, callback); } }, true); } } }