def _get_tags_for_item(item) -> int | None:
    """
    Generate bit mask based for the type of item provided, or None if it could not be mapped.
    """
    if isinstance(item, Block):
        b = 0
    elif isinstance(item, MemoryData):
        b = {
            MemoryDataSort.String: 2,
            MemoryDataSort.UnicodeString: 2,
        }.get(item.sort, 1)
    else:
        return None
    return 1 << b

    Generate bit mask based for the type of item provided, or None if it could not be mapped.
    
angrmanagement/ui/widgets/qfeature_map.py