5859606162636465666768
if(pathIndex >= path.length) { result.add(root); return; } NodeType searchedType = path[pathIndex++]; for(Node child : root.childNodes()) { while(child instanceof NewlineNode) child = ((NewlineNode) child).getNextNode(); if(child == null) continue;