@Override public void add(@NotNull Balloon balloon, @Nullable Object layoutData) { if (layoutData instanceof BalloonLayoutData && ((BalloonLayoutData) layoutData).welcomeScreen) { addToPopup((BalloonImpl) balloon, (BalloonLayoutData) layoutData); } else { super.add(balloon, layoutData); } }
@Override public void dispose() { super.dispose(); if (myPopupBalloon != null) { Disposer.dispose(myPopupBalloon); myPopupBalloon = null; } }