code: public static void mergeNodeChildren(TreeNode node) {
          DefaultMutableTreeNode masterNode = (DefaultMutableTreeNode) node;
  
          // The rules are there are no rules. Nothing else needs to be done
          // except for merging through the children
          for (int i = 0; i < masterNode.getChildCount(); i++) {
              DefaultMutableTreeNode child = (DefaultMutableTreeNode) masterNode.getChildAt(i);
  
              if (!child.isLeaf()) {
                  MergeHelpUtilities.mergeNodeChildren(DEFAULT_MERGE_TYPE, child);
              }
          }
      }
docs: this class instead.