void () { AbstractTreeUi ui = getUi(); if (ui == null) { result.reject("ui is null"); return; } if (updateStructure && forceResort) { ui.incComparatorStamp(); } ui.queueUpdate(element, updateStructure).notify(result); }