void () { if (myUpdateSelectedPathModeActive.get()) { return; } myList.setPaintBusy(true); myMergingUpdateQueue.queue(Update.create("update", () -> { T oldValue = getSelectedValue(); int oldIndex = myList.getSelectedIndex(); if (myNonBlockingLoad) { scheduleUpdateNonBlocking(oldValue, oldIndex); } else { scheduleUpdateBlocking(oldValue, oldIndex); } })); }