def METHOD_NAME(self, node: SidebarItem) -> None:
    "Cache index of children in parent."
    for row, item in enumerate(node.children):
        item._row_in_parent = row
        self.METHOD_NAME(item)