for (TreeNode node : children) { if (node.dumpNode(level)) { node.dumpChildren(level + 1); } }
dumpChildren(0);
    public void dumpChildren (final int level)    {        for (TreeNode node : children) {            if (node.dumpNode(level)) {                node.dumpChildren(level + 1);            }        }    }