void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); Project project = e.getProject(); if (project == null) { presentation.setEnabled(false); return; } presentation.setEnabled(IdeDocumentHistory.getInstance(project).isNavigateNextChangeAvailable()); }