public boolean isMenuCanceledForMouseEvent(Object source) {
        boolean ret = !popup.isVisible() && (cancelReason == source);
        cancelReason = null;

        return ret;
    }
public boolean isMenuCanceledForMouseEvent(Object source)