void (@NotNull AnActionEvent e) { FileDocumentManager.getInstance().saveAllDocuments(); Change[] changes = e.getRequiredData(VcsDataKeys.CHANGES); Project project = e.getData(CommonDataKeys.PROJECT); RollbackChangesDialog.rollbackChanges(project, Arrays.asList(changes)); }