driver-legacy/src/main/com/mongodb/ReflectionDBObject.java
@Nullable
    public static JavaWrapper getWrapperIfReflectionObject(final Class c) {
        if (ReflectionDBObject.class.isAssignableFrom(c)) {
            return getWrapper(c);
        }
        return null;
    }
@Nullable
    public static JavaWrapper getWrapperIfReflectionObject(final Class c) {
        if (ReflectionDBObject.class.isAssignableFrom(c)) {
            return getWrapper(c);
        }
        return null;
    }
Returns the wrapper if this object can be assigned from this class.

@param c the class to be wrapped
@return the wrapper