@Override
  public boolean isLeaf(Object object) {
    if (object == myRoot) return false;

    if (object instanceof ServiceModel.ServiceNode node) {
      if (!node.isChildrenInitialized() && !node.isLoaded()) {
        return false;
      }
    }
    return myModel.getChildren(((ServiceViewItem)object)).isEmpty();
  }
@Override
  public boolean isLeaf(Object object)