@Override
  public void update(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    DataContext context = e.getDataContext();

    boolean isVisible = project != null && ProjectLevelVcsManager.getInstance(project).hasActiveVcss();
    boolean isEnabled = isEnabled(context);

    e.getPresentation().setEnabled(isEnabled);
    e.getPresentation().setVisible(isVisible);

    if (isEnabled && isVisible && VcsContextUtil.selectedFilePathsIterable(context).isEmpty()) {
      VirtualFile editorFile = getEditorFile(context);
      if (editorFile != null) {
        e.getPresentation().setText(ActionsBundle.message("action.Vcs.ShowTabbedFileHistory.for.file.text", editorFile.getName()));
      }
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)