void (@NotNull ShelvedChangeList changeList, List<? extends FilePatch> remainingPatches, List<ShelvedBinaryFile> remainingBinaries, CommitContext commitContext) { writePatchesToFile(myProject, changeList.path, remainingPatches, commitContext); changeList.getBinaryFiles().retainAll(remainingBinaries); changeList.setChanges(createShelvedChangesFromFilePatches(myProject, changeList.path, remainingPatches)); }