def METHOD_NAME(app, type_reference: str) -> dict:
    if not type_reference:
        return None
    schemas = app["components"]["schemas"]
    type_text = type_reference.split("/")[-1]
    return schemas.get(type_text, type_reference)