GROOVY-9176: Invalid duplicate method error if a trait is precompiled and a method is static