public static IResultNode GetLastDescendant(this IResultNode resultNode)
 {
     return(resultNode.HasChildren() ? resultNode.GetLastChild().GetLastDescendant() : resultNode);
 }