presto-main/src/main/java/io/prestosql/execution/warnings/WarningCollectorModule.java/WarningCollectorModule/createWarningCollectorFactory
class WarningCollectorModule:    @Provides
    @Singleton
    public WarningCollectorFactory createWarningCollectorFactory(WarningCollectorConfig config)
    {
        requireNonNull(config, "config is null");
        return () -> new DefaultWarningCollector(config);
    }