GROOVY-6268: use a warning block