}
WorkspaceTreeUpdate msg = fileTreeModel.makeEmptyTreeUpdate();
for (int i = 0, n = nodesToMove.size(); i < n; i++) {
FileTreeNode nodeToMove = nodesToMove.get(i);
PathUtil targetPath = new PathUtil.Builder().addPath(parentDirData.getNodePath())
.addPathComponent(FileTreeUtils.allocateName(
parentDirData.<DirInfoImpl>cast(), nodeToMove.getName())).build();
msg.getMutations().add(FileTreeUtils.makeMutation(Mutation.Type.MOVE,
nodeToMove.getNodePath(), targetPath, nodeToMove.isDirectory(),
nodeToMove.getFileEditSessionKey()));