def METHOD_NAME(self) -> Dict[Any, "SimType"]:
    # global types
    r = dict(self._instance.kb.types)
    # local types
    if not self._code_view.function.am_none:
        func_addr = self._code_view.function.addr
        if (func_addr, "pseudocode") in self._instance.kb.structured_code:
            pseudocode_cache = self._instance.kb.structured_code[(func_addr, "pseudocode")]
            r.update(pseudocode_cache.local_types)
    return r