docs: public static MetaClass getMetaClass(Class c) {
          MetaClassRegistry metaClassRegistry = GroovySystem.getMetaClassRegistry();
          MetaClass mc = metaClassRegistry.getMetaClass(c);
          if (mc instanceof ExpandoMetaClass
                  || mc instanceof DelegatingMetaClass && ((DelegatingMetaClass) mc).getAdaptee() instanceof ExpandoMetaClass)
              return mc;
          else {
              return new HandleMetaClass(mc);
          }
      }