static L treeView_allNodes(TreeView t) {
new L out;
if (t == null) ret out;
TreeView parent;
while ((parent = t.parent()) != null) t = parent;
new L> stack;
stack.add(t);
while (nempty(stack)) {
t = popLast(stack);
out.add(t.node());
addAll(stack, t.children());
}
ret out;
}