def METHOD_NAME(self, fullname: str) -> Callable[[FunctionContext], Type] | None:
    if fullname == "builtins.isinstance":
        return isinstance_proper_hook
    if fullname == "mypy.types.get_proper_type":
        return proper_type_hook
    if fullname == "mypy.types.get_proper_types":
        return proper_types_hook
    return None