GROOVY-6990: Avoid creation of MOP methods if a class is fully statically compiled