code: func (i *ProviderInstaller) platformCompatibleVersions(versions []*response.TerraformProviderVersion) []*response.TerraformProviderVersion {
  	var v []*response.TerraformProviderVersion
  	for _, version := range versions {
  		if err := i.checkPlatformCompatibility(version); err == nil {
  			v = append(v, version)
  		}
  	}
  	return v
  }
docs: // platformCompatibleVersions returns a list of provider versions that are
  // compatible with the requested platform.