List<VcsException> (final AbstractVcs vcs, final List<? extends FilePath> files) { RollbackEnvironment environment = vcs.getRollbackEnvironment(); if (environment == null) return Collections.emptyList(); final ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); if (indicator != null) { indicator.setText(VcsBundle.message("progress.text.performing.rollback", vcs.getDisplayName())); } final List<VcsException> result = new ArrayList<>(0); try { environment.rollbackMissingFileDeletion(files, result, new RollbackProgressModifier(files.size(), indicator)); } catch (ProcessCanceledException e) { // for files refresh } LocalFileSystem.getInstance().refreshIoFiles(ChangesUtil.filePathsToFiles(files)); return result; }