@Override
  public void uiDataSnapshot(@NotNull DataSink sink) {
    super.uiDataSnapshot(sink);
    sink.set(CommittedChangesBrowserUseCase.DATA_KEY, myUseCase);

    VcsTreeModelData selection = VcsTreeModelData.selected(myViewer);
    sink.lazy(VcsDataKeys.VCS, () -> {
      AbstractVcs selectionVcs = selection.iterateUserObjects(Change.class)
        .map(change -> ChangesUtil.getFilePath(change))
        .map(root -> ProjectLevelVcsManager.getInstance(myProject).getVcsFor(root))
        .filterNotNull()
        .unique()
        .single();
      if (selectionVcs != null) return selectionVcs.getKeyInstanceMethod();
      return null;
    });
  }
@Override
  public void uiDataSnapshot(@NotNull DataSink sink)