void (@NotNull AnActionEvent e) { super.update(e); Project project = e.getProject(); if (project == null) return; ChangesViewManager changesViewManager = getChangesViewManager(project); if (changesViewManager == null) return; e.getPresentation().setEnabledAndVisible(changesViewManager.isDiffPreviewAvailable()); }