private void updateStatus(@Nullable Project project) {
    if (project == null || project.isDisposed()) {
      return;
    }
    List<Notification> notifications = NotificationsToolWindowFactory.Companion.getStateNotifications(project);
    updateIconOnStatusBar(notifications);

    int count = notifications.size();
    myComponent.get().setToolTipText(count > 0 ? UIBundle.message("status.bar.notifications.widget.tooltip", count)
                             : UIBundle.message("status.bar.notifications.widget.no.notification.tooltip"));
  }
private void updateStatus(@Nullable Project project)