GROOVY-6694: Fix access of static properties from within the trait