presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoStatement.java/PrestoStatement/getWarnings
class PrestoStatement:    @Override
    public SQLWarning getWarnings()
            throws SQLException
    {
        checkOpen();
        return currentWarningsManager.get().map(WarningsManager::getWarnings).orElse(null);
    }