@Override
  public void update(@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());
  }
@Override
  public void update(@NotNull AnActionEvent e)