fn group_inline_nodes(nodes: Vec<NodeRef>) -> Vec<NodeGroup>
Group subsequent nodes that are inline.
Allows to group nodes by widget that will need to be constructed.