void () { int count = myBalloonPanel.getComponentCount(); List<NotificationType> types = new ArrayList<>(count); for (int i = 0; i < count; i++) { types.add((NotificationType)((JComponent)myBalloonPanel.getComponent(i)).getClientProperty(TYPE_KEY)); } ApplicationManager.getApplication().getMessageBus().syncPublisher(BALLOON_NOTIFICATION_TOPIC).notificationsChanged(types); if (myVisible) { if (count == 0) { myPopupBalloon.getComponent().setVisible(false); } else { layoutPopup(); } } }