static Mutation makeMutation(Mutation.Type mutatonType, PathUtil oldPath, PathUtil newPath,
boolean isDirectory, String resourceId) {
// We make a placeholder for the new node solely to install information
// about whether or not this is a directory.
TreeNodeInfoImpl placeHolderNode = TreeNodeInfoImpl.make().setNodeType(
isDirectory ? TreeNodeInfo.DIR_TYPE
: TreeNodeInfo.FILE_TYPE).setFileEditSessionKey(resourceId);
return MutationImpl.make()
.setMutationType(mutatonType)