'Figure out the parent object for something at \'pos\'.'

def find_parent_for_new_to(self, pos):

    for children in self._editable_children:
        if (children._start <= pos < children._end):
            return children.find_parent_for_new_to(pos)
        if ((children._start == pos) and (pos == children._end)):
            return children.find_parent_for_new_to(pos)
    return self
