void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); DiffRequest request = e.getRequiredData(DiffDataKeys.DIFF_REQUEST); DiffVirtualFile file = new SimpleDiffVirtualFile(request); FileEditorManager.getInstance(project).openFile(file, true); }