def METHOD_NAME(appid: str, branch: str = "stable"):
    result = []
    summary = db.get_json_key(f"summary:{appid}:{branch}")
    if (
        summary
        and "metadata" in summary
        and summary["metadata"]
        and "extensions" in summary["metadata"]
        and summary["metadata"]["extensions"]
    ):
        extension_ids = list(summary["metadata"]["extensions"].keys())
        apps = {app[5:] for app in db.redis_conn.smembers("types:addon")}
        for app in apps:
            for extension_id in extension_ids:
                if app.startswith(extension_id):
                    result.append(app)
    return result