def METHOD_NAME(panel):
    blockSensors = []
    for block in blocks.getNamedBeanSet():
        sensor = block.getSensor()
        if sensor is not None:
            blockSensors.append(sensor)
    deleteList = []     # Prevent concurrent modification
    icons = panel.getSensorList()
    for icon in icons:
        sensor = icon.getSensor()
        if (sensor) and (sensor in blockSensors) :
            deleteList.append(icon)
    for item in deleteList:
        panel.removeFromContents(item)