def METHOD_NAME(self, num):
    if self.conflictCallback is not None:
        conflictName = self.conflictCallback(self.keybuttons[num].shortcut(), *self.cbArgs)
        if conflictName:
            text = _("Conflict with: {name}").format(
                name=f"<b>{conflictName}</b>")
            self.conflictlabels[num].setText(text)
            self.conflictlabels[num].setVisible(True)
        else:
            self.conflictlabels[num].setVisible(False)
        QTimer.singleShot(0, self.adjustSize)