def METHOD_NAME(self, project_name):
    hierarchy = ayon_api.get_folders_hierarchy(project_name)
    folder_items = {}
    hierachy_queue = collections.deque(hierarchy["hierarchy"])
    while hierachy_queue:
        item = hierachy_queue.popleft()
        folder_item = _get_folder_item_from_hierarchy_item(item)
        folder_items[folder_item.entity_id] = folder_item
        hierachy_queue.extend(item["children"] or [])
    return folder_items