void (@NotNull AnActionEvent e) { Project project = Objects.requireNonNull(e.getProject()); Change[] changes = e.getRequiredData(VcsDataKeys.SELECTED_CHANGES_IN_DETAILS); List<GetVersionAction.FileRevisionProvider> fileContentProviders = ContainerUtil.map(changes, change -> { return new MyFileContentProvider(change); }); GetVersionAction.doGet(project, VcsBundle.message("compare.with.dialog.get.from.vcs.action.title"), fileContentProviders, null); }