private static void registerTouchbarActionsImpl(@NotNull Project project) {
    if (project.isDisposed()) {
      return;
    }

    final JFrame frame = WindowManager.getInstance().getFrame(project);
    if (frame == null) {
      LOG.debug("null frame for project: %s", project);
      return;
    }

    final @Nullable Pair<Map<Long, ActionGroup>, Customizer> defaultGroup = ActionsLoader.getProjectDefaultActionGroup();
    if (defaultGroup == null) {
      LOG.debug("can't load default action group for project: %s", project);
      TouchBarsManager.unregister(frame);
      return;
    }

    LOG.debug("register project-default action group %s | frame %s", project, frame);
    TouchBarsManager.registerAndShow(frame, defaultGroup.first, defaultGroup.second);
  }
private static void registerTouchbarActionsImpl(@NotNull Project project)