The node you are looking for is at Texinfo::Common move_index_entries_after_items_in_tree($tree).