boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); ChangesBrowserBase changesBrowser = e.getData(DATA_KEY); return project != null && changesBrowser != null && changesBrowser.canShowDiff(); }