private void MergeEmptyChildren(BUCoverNode <T> node) { if (node.HasChildren() && node.AreExistingChildrenEmpty()) { node.MergeEmptyChildren(); } if (node.IsRootNode() && IsEmpty()) { rootNode = null; return; } if (node.IsRootNode() || !node.IsEmpty() || node.HasChildren()) { return; } MergeEmptyChildren(node.GetParent()); }