GROOVY-5995: Type checking extensions are not initialized with @CompileStatic