@Override
  @RequiresBackgroundThread
  public void updateRepository(@Nullable VirtualFile root) {
    T repo = getRepositoryForRoot(root);
    if (repo != null) {
      repo.update();
    }
  }
@Override
  @RequiresBackgroundThread
  public void updateRepository(@Nullable VirtualFile root)