def METHOD_NAME(
        self, painter: QPainter, rect: QRect, mode: QIcon.Mode,
        state: QIcon.State
) -> None:
    if not self.__base.isNull():
        palette = self.effectivePalette()
        size = rect.size()
        dpr = painter.device().devicePixelRatioF()
        size = size * dpr
        pm = self.__renderStyledPixmap(size, mode, state, palette)
        painter.drawPixmap(rect, pm)