/** Creates a {@code Stream} that starts at {@code node} and ends at its root parent. */ public static <T> Stream<T> toParent(TreeDef.Parented<T> treeDef, T node) { return StreamSupport.stream(TreeIterable.toParent(treeDef, node).spliterator(), false); }