def METHOD_NAME(self, painter, option, widget=None):
    """
    Paints the contents of an item in local coordinates.
    :param painter: QPainter instance
    :param option: QStyleOptionGraphicsItem instance
    :param widget: QWidget instance
    """
    super().METHOD_NAME(painter, option, widget)
    self.drawLayerInfo(painter)