def METHOD_NAME(self, message):
    # Delayed setup, since only now the widget is added to the TabWidget
    if self.tab_widget is None:
        self.tab_widget = self.parent().parent()
        self.tab_index = self.tab_widget.indexOf(self)
        self.tab_widget.tabBar().setIconSize(QtCore.QSize(12, 12))
        self.tab_widget.tabBar().currentChanged.connect(self._blinking_stop)
    if message.startswith("<!--ERROR-->") or message.startswith("<!--CRITICAL-->"):
        error = True
    elif message.startswith("<!--WARNING-->"):
        error = False
    else:  # no blinking
        return
    # Check if the current tab is actually the log-tab
    if self.tab_widget.currentIndex() == self.tab_index:
        self._blinking_stop(self.tab_widget.currentIndex())
        return
    # Define color and icon based on severity
    # If already red, this should not be updated
    if not self._blink_color == "red":
        self._blink_color = "red" if error else "darkorange"
        pixmapi = QtWidgets.QStyle.StandardPixmap.SP_MessageBoxCritical if \
            error else QtWidgets.QStyle.StandardPixmap.SP_MessageBoxWarning
        icon = self.style().standardIcon(pixmapi)
        self.tab_widget.setTabIcon(self.tab_index, icon)
    # Start timer
    self._blink_qtimer.start(500)