public @Nullable Repository getRepositoryForFile(@Nullable FilePath file, boolean quick) {
    final VcsRoot vcsRoot = myVcsManager.getVcsRootObjectFor(file);
    if (vcsRoot == null) {
      return getExternalRepositoryForFile(file);
    }
    return quick ? getRepositoryForRootQuick(vcsRoot.getPath()) : getRepositoryForRoot(vcsRoot.getPath());
  }
public @Nullable Repository getRepositoryForFile(@Nullable FilePath file, boolean quick)