void (@NotNull AnActionEvent e) { Project project = Objects.requireNonNull(e.getProject()); MyLoadingChangesPanel changesPanel = e.getRequiredData(MyLoadingChangesPanel.DATA_KEY); MyChangesBrowser browser = (MyChangesBrowser)changesPanel.getChangesBrowser(); List<FileRevisionProvider> fileContentProviders = ContainerUtil.map(browser.getSelectedChanges(), change -> { return new MyFileContentProvider(change, browser.myLocalContent); }); GetVersionAction.doGet(project, VcsBundle.message("compare.with.dialog.get.from.vcs.action.title"), fileContentProviders, () -> { FileDocumentManager.getInstance().saveAllDocuments(); changesPanel.reloadChanges(); }); }