public void visit(TaskGroup taskGroup) { for (TaskElement each : taskGroup.getChildren()) { each.acceptVisitor(this); } }