void () { if (myPopup == null) return; if (myPopup.isVisible()) { // setCancelCallback(..) can override cancel() return; } // cancel() already called Disposer.dispose() myPopup = null; myUpdater.updateActions(false, false, false); }