GROOVY-7206: Fix the case of static properties