fn active_sub_tree_ids( data: &TraitTreeWithSelections, node_by_id: &FastMap<i32, &TraitNode>, ) -> Option<FastSet<i32>>