static PTElement ai_parseTree_descendToComposite(PTElement e) { while (e instanceof ChooseCategory || e instanceof HaveCategory) { PTElement e2 = e; e = first(e.children); // Choose most likely reconstruction print("Went from " + className(e2) + " to " + className(e)); } ret e; }