private static boolean isCrossEscGroup(@NotNull ActionGroup group) {
    for (AnAction child : group.getChildren(null)) {
      TouchbarActionCustomizations customizations = TouchbarActionCustomizations.getCustomizations(child);
      if (customizations == null || !customizations.isCrossEsc()) {
        return false;
      }
    }
    return true;
  }
private static boolean isCrossEscGroup(@NotNull ActionGroup group)