Collection<PatchApplier> (@NotNull MultiMap<VirtualFile, AbstractFilePatchInProgress<?>> patchGroups, @Nullable LocalChangeList localList, @NotNull CommitContext commitContext) { Collection<PatchApplier> appliers = new ArrayList<>(); for (VirtualFile base : patchGroups.keySet()) { appliers.add(new PatchApplier(myProject, base, ContainerUtil.map(patchGroups.get(base), patchInProgress -> { return patchInProgress.getPatch(); }), localList, commitContext)); } return appliers; }