def METHOD_NAME(panel):
    for blockName in blockPoints.keys():
        x = blockPoints[blockName].getX() - 5 # icon is 10x10
        y = blockPoints[blockName].getY() - 5
        block = blocks.getBlock(blockName)
        if (block) :
            sensor = block.getSensor()
            if (sensor) :
                addSmallIcon(panel, sensor.getDisplayName(), x, y)
                addBlockContentLabel(panel, block, x+10, y-5)