GROOVY-6504: Type checker selects the wrong "inject" method