public static @NotNull JComponent createNotificationToolbar(@NotNull Disposable parentDisposable) {
    var horizontalGap = 4;

    IdeMessagePanel panel = new IdeMessagePanel(null, MessagePool.getInstance());
    Disposer.register(parentDisposable, panel);

    DefaultActionGroup group = new DefaultActionGroup(panel.getAction(), new NotificationEventAction(parentDisposable));
    ActionToolbarImpl toolbar = (ActionToolbarImpl)ActionManager.getInstance().createActionToolbar(
      "WelcomeScreen.NotificationPanel", group, true);
    toolbar.setMinimumButtonSize(new JBDimension(26, 26));
    toolbar.setReservePlaceAutoPopupIcon(false);
    toolbar.setActionButtonBorder(horizontalGap, 1);

    ApplicationManager.getApplication().getMessageBus().connect(parentDisposable)
      .subscribe(WelcomeBalloonLayoutImpl.BALLOON_NOTIFICATION_TOPIC, new WelcomeBalloonLayoutImpl.BalloonNotificationListener() {
        @Override
        public void notificationsChanged(List<NotificationType> types) {
        }

        @Override
        public void newNotifications() {
          UIUtil.invokeLaterIfNeeded(() -> {
            Disposable disposable = Disposer.newDisposable(parentDisposable);
            toolbar.addListener(new ActionToolbarListener() {
              @Override
              public void actionsUpdated() {
                Disposer.dispose(disposable);
                BalloonLayout balloonLayout = WelcomeFrame.getInstance().getBalloonLayout();
                if (balloonLayout instanceof WelcomeSeparateBalloonLayoutImpl layout) {
                  layout.autoPopup();
                }
              }
            }, disposable);
            toolbar.updateActionsAsync();
          });
        }
      });

    JComponent result = toolbar.getComponent();
    toolbar.setTargetComponent(result);
    result.setOpaque(false);
    if (ExperimentalUI.isNewUI()) {
      result.setBorder(JBUI.Borders.empty(0, 0, 15, 24 - horizontalGap));
    }
    else {
      result.setBorder(JBUI.Borders.empty(0, 0, 5, 8));
    }
    return result;
  }
public static @NotNull JComponent createNotificationToolbar(@NotNull Disposable parentDisposable)