boolean () { final boolean[] ready = {false}; invokeAndWaitIfNeeded(() -> { AbstractTreeUi ui = getBuilder().getUi(); if (ui == null) { ready[0] = true; return; } ready[0] = myCancelRequest != null || myReadyRequest || condition.value(null) && ui.isReady(); }); return ready[0]; }