code: public static TreePath translatePath(
          TreeModel newTreeModel, TreePath oldPath)
      {
          return translatePath(newTreeModel, oldPath, Objects::equals);
      }
docs: Translates one TreePath to a new TreeModel. This methods assumes
  DefaultMutableTreeNodes.
  
  @param newTreeModel The new tree model
  @param oldPath The old tree path
  @return The new tree path, or <code>null</code> if there is no
  corresponding path in the new tree model