public Schema inlineOrReferenceSchema(MemberShape member) {
        if (getJsonSchemaConverter().isInlined(member)) {
            return getJsonSchemaConverter().convertShape(member).getRootSchema();
        } else {
            return createRef(member);
        }
    }
Gets the exiting schema of the shape if it's meant to be inlined,
otherwise creates a $ref to the shape if it is meant to be reused
across the generated schema.

@param member Member to inline or reference.
@return Returns the schema for the member.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/Context.java