pub fn partition_nodes_by_kind<'a>(
    doc_nodes: &[DocNodeWithContext<'a>],
    flatten_namespaces: bool
) -> IndexMap<DocNodeKind, Vec<DocNodeWithContext<'a>>>