private static @NotNull TreePath update(@NotNull TreePath path, @NotNull Object oldObject, @NotNull Object newObject) {
      if (!contains(path, oldObject)) return path;
      if (LOG.isTraceEnabled()) LOG.debug("update path: ", path);
      Object[] objects = TreePathUtil.convertTreePathToArray(path);
      for (int i = 0; i < objects.length; i++) {
        if (oldObject == objects[i]) objects[i] = newObject;
      }
      return TreePathUtil.convertArrayToTreePath(objects);
    }
private static @NotNull TreePath update(@NotNull TreePath path, @NotNull Object oldObject, @NotNull Object newObject)