List<FilePatch> () { Collection<AbstractFilePatchInProgress> notIncluded = ContainerUtil.subtract(myPatches, getIncluded()); List<FilePatch> remainingOriginal = new ArrayList<>(); for (AbstractFilePatchInProgress progress : notIncluded) { progress.reset(); remainingOriginal.add(progress.getPatch()); } return remainingOriginal; }