Add utility function that will convert `DocumentNode` into a map of definition kind to arrays of AST Nodes. More generic version of #1476
Add utility function that will convert
DocumentNodeinto a map of definition kind to arrays of AST Nodes.More generic version of #1476