docs: public JsiiObjectRef nativeToObjRef(final Object nativeObject) {
          if (nativeObject instanceof JsiiObject) {
              return ((JsiiObject) nativeObject).getObjRef();
          }
  
          for (String objid : this.objects.keySet()) {
              Object obj = this.objects.get(objid);
              if (obj == nativeObject) {
                  return JsiiObjectRef.fromObjId(objid);
              }
          }
  
          // we don't know of an jsii object that represents this object, so we will need to create it.
          return createNewObject(nativeObject);
      }