void (final List<? extends FilePatch> patches, final int skipDirs) { if (skipDirs < 1) { return; } for (FilePatch patch : patches) { patch.setBeforeName(skipN(patch.getBeforeName(), skipDirs)); patch.setAfterName(skipN(patch.getAfterName(), skipDirs)); } }