List<ShelvedChange> (@NotNull Project project, @NotNull ShelvedChangeList changeList, @NotNull Path newPatchPath) { List<ShelvedChange> copied = new ArrayList<>(); for (ShelvedChange change : changeList.getChanges()) { copied.add(ShelvedChange.copyToNewPatch(project, newPatchPath, change)); } return copied; }