static Pair stringTreeLeafValue2(StringTree2 tree, L items) { int i = 0; while (tree != null && i < l(items)) { if (tree.leafValue != null) ret pair(tree.leafValue, i); tree = tree.children.get(items.get(i)); ++i; } null; }