void (@NotNull Collection<? extends VirtualFile> rootsToSave, @NotNull Collection<Change> shelvedChanges) { Set<VirtualFile> rootsSet = new HashSet<>(rootsToSave); List<Change> changes4Rollback = filterChangesByRoots(ChangeListManager.getInstance(project).getAllChanges(), rootsSet); new RollbackWorker(project, myStashMessage, true).doRollback(changes4Rollback, true); }