void (final Balloon balloonToHide, Object breakpoint) { myBalloonToHide = balloonToHide; myBreakpoint = breakpoint; Disposer.register(myBalloonToHide, new Disposable() { @Override public void dispose() { if (myBalloonToHide == balloonToHide) { myBalloonToHide = null; myBreakpoint = null; } } }); }