GROOVY-7217: Fixed too optimistic addition of @CompileStatic annotation on trait initialization methods