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