def find_first(self, item_type, **attributes):
        try:
            return self.find_items(item_type, **attributes)[0]
        except __HOLE__:
            return None

    #
    # This will only work if it is used to determine the insert position for
    # all items in the same menu.
    #
dataset/ETHPy150Open divio/django-cms/cms/toolbar/items.py/ToolbarAPIMixin.find_first