public static ISchemaBuilder AddTypeInterceptor <T>( this ISchemaBuilder builder) where T : ITypeInitializationInterceptor { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder.AddTypeInterceptor(typeof(T))); }