@Override
  @RequiresBackgroundThread
  public @Nullable T getRepositoryForRoot(@Nullable VirtualFile root) {
    return validateAndGetRepository(myGlobalRepositoryManager.getRepositoryForRoot(root));
  }
@Override
  @RequiresBackgroundThread
  public @Nullable T getRepositoryForRoot(@Nullable VirtualFile root)