private static void updateStatusBar(@NotNull Project project) {
    ApplicationManager.getApplication().invokeLater(() -> {
      IdeFrame frame = WindowManager.getInstance().getIdeFrame(project);
      StatusBar statusBar = frame != null ? frame.getStatusBar() : null;
      StatusBarWidget widget = statusBar != null ? statusBar.getWidget(StatusBar.StandardWidgets.LINE_SEPARATOR_PANEL) : null;

      if (widget instanceof LineSeparatorPanel) {
        ((LineSeparatorPanel)widget).selectionChanged(null);
      }
    });
  }
private static void updateStatusBar(@NotNull Project project)