private static boolean isSingleService(ServiceViewItem item) {
    if (item instanceof ServiceNode node) {
      if (!node.isChildrenInitialized() || !node.isLoaded()) {
        return false;
      }
    }
    return item.getChildren().isEmpty();
  }
private static boolean isSingleService(ServiceViewItem item)