boolean (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(); }