static L ai_scanParseTreeForWord_all(PTElement e, S word) { new L out; ai_scanParseTreeForWord_all_scan(e, word, out); ret out; } svoid ai_scanParseTreeForWord_all_scan(PTElement e, S word, L out) { if (e == null) ret; if (eqic(e.text(), word)) ret with out.add(e); for (PTElement child : unnull(e.children)) ai_scanParseTreeForWord_all_scan(child, word, out); }