presto-jdbc/src/main/java/io/prestosql/jdbc/WarningsManager.java/WarningsManager/getWarnings
class WarningsManager:    public synchronized SQLWarning getWarnings()
    {
        return firstWarning;
    }