docs: @Override
      public boolean hasInstance(Scriptable value) {
  
          if (value instanceof Wrapper &&
              !(value instanceof NativeJavaClass)) {
              Object instance = ((Wrapper)value).unwrap();
  
              return getClassObject().isInstance(instance);
          }
  
          // value wasn't something we understand
          return false;
      }