@staticmethod
def _depth_of_child(item):
    """
        Determine the level / depth of a child item in the sequence tree.
        """
    depth = -1
    while item:
        item = item.parent()
        depth += 1
    return depth
