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