void (@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())); } }