static PTElement ai_cullParseTree(PTElement e) { if (e == null) ret e; if (!e instanceof ChoosePart) removeAllButFirst(e.children); for (PTElement child : unnull(e.children)) ai_cullParseTree(child); ret e; }