@Override
  public void update(@NotNull AnActionEvent e) {
    if (LocalHistoryImpl.getInstanceImpl().isDisabled()) {
      e.getPresentation().setEnabledAndVisible(false);
      return;
    }

    Project project = e.getProject();
    LocalHistoryFacade vcs = getVcs();

    e.getPresentation().setEnabled(project != null && vcs != null);
    e.getPresentation().setVisible(project != null);
  }
@Override
  public void update(@NotNull AnActionEvent e)