@RequiresBackgroundThread
  public @Nullable Repository getRepositoryForFile(@Nullable VirtualFile file) {
    return getRepositoryForFile(file, false);
  }
@RequiresBackgroundThread
  public @Nullable Repository getRepositoryForFile(@Nullable VirtualFile file)