Make External index store Protected Content

Umbraco 13

I want to make the standard “External” index store protected content, so I have added this class. It seems to work but it shows the “new ContentValueSetValidator” call as Obsolete. What can I change it to?

public class ConfigureExternalExamineIndexOptions : IConfigureNamedOptions<LuceneDirectoryIndexOptions>
{
    private readonly IPublicAccessService _publicAccessService;

    public ConfigureExternalExamineIndexOptions(
        IPublicAccessService publicAccessService
        )
    {
        _publicAccessService = publicAccessService;
    }
    public void Configure(string? name, LuceneDirectoryIndexOptions options)
    {
        if (name.Equals(Constants.UmbracoIndexes.ExternalIndexName))
        {
            options.Validator = new ContentValueSetValidator(true, true, _publicAccessService, null, null, null);

            options.FieldDefinitions.AddOrUpdate(new Examine.FieldDefinition(AppConstants.News.DateSearchableField, FieldDefinitionTypes.DateTime));
            options.FieldDefinitions.AddOrUpdate(new FieldDefinition(AppConstants.CommonSearchFields.SortContentUpdateDate, FieldDefinitionTypes.Long));
        }
    }

    public void Configure(LuceneDirectoryIndexOptions options)
    {
        throw new NotImplementedException();
    }
}

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/114630-make-external-index-store-protected-content