boolean (final NodeDescriptor nodeDescriptor) { final AbstractTreeStructure treeStructure = getTreeStructure(); final Object rootElement = treeStructure.getRootElement(); final Object nodeElement = nodeDescriptor.getElement(); if (nodeElement == rootElement) { return true; } if (((SMTestProxy)nodeElement).getParent() == rootElement && ((SMTestProxy)rootElement).getChildren().size() == 1) { return true; } return false; }