void (@NotNull AnActionEvent e) { Project project = e.getProject(); History history = e.getData(History.KEY); if (history != null) { history.back(); } else if (project != null) { IdeDocumentHistory.getInstance(project).back(); } }