presto-main/src/main/java/io/prestosql/execution/warnings/WarningCollectorConfig.java/WarningCollectorConfig/setMaxWarnings
class WarningCollectorConfig:    @Config("warning-collector.max-warnings")
    public WarningCollectorConfig setMaxWarnings(int maxWarnings)
    {
        checkArgument(maxWarnings >= 0, "maxWarnings must be >= 0");
        this.maxWarnings = maxWarnings;
        return this;
    }