static void ai_openMainParseInJTree(final JTree tree) { swing { ai_openMainParseInJTree(tree, jDynamicTree_root(tree)); } } static void ai_openMainParseInJTree(JTree tree, DefaultMutableTreeNode n) { if (n == null) ret; tree.expandPath(new TreePath(n.getPath())); PTElement e = cast n.getUserObject(); int count = n.getChildCount(); if (!e instanceof ChoosePart) count = min(1, count); for i to count: ai_openMainParseInJTree(tree, (DefaultMutableTreeNode) n.getChildAt(i)); }