@Override
      public void projectClosed(@NotNull Project project) {
        forEachToolWindow(project, tw -> {
          if (tw != null)
            TouchBarsManager.unregister(tw.getComponent());
        });
      }
@Override
      public void projectClosed(@NotNull Project project)