presto-main/src/main/java/io/prestosql/execution/warnings/DefaultWarningCollector.java/DefaultWarningCollector/getWarnings
class DefaultWarningCollector:    @Override
    public synchronized List<PrestoWarning> getWarnings()
    {
        return ImmutableList.copyOf(warnings.values());
    }