private static void mapPatchesToNewBase(@NotNull Path oldBase, @NotNull Path newBase, @NotNull List<? extends FilePatch> patches) {
    if (oldBase.equals(newBase)) {
      return;
    }

    for (FilePatch patch : patches) {
      patch.setBeforeName(getRelativePath(oldBase, newBase, patch.getBeforeName()));
      patch.setAfterName(getRelativePath(oldBase, newBase, patch.getAfterName()));
    }
  }
private static void mapPatchesToNewBase(@NotNull Path oldBase, @NotNull Path newBase, @NotNull List<? extends FilePatch> patches)