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