def METHOD_NAME(self):
    self.clear()
    self.addItem(QIcon.fromTheme("dialog-no"), self.tr("None"))
    l = [self.tr("Main"), self.tr("Secondary"), self.tr("Minor")]
    for importance in range(3):
        self.addItem(l[importance])
        self.setItemData(self.count() - 1, QBrush(QColor(S.highlightedTextDark)), Qt.ForegroundRole)
        self.setItemData(self.count() - 1, QBrush(QColor(S.highlightLight)), Qt.BackgroundRole)
        item = self.model().item(self.count() - 1)
        item.setFlags(Qt.ItemIsEnabled)
        for i in range(self.mdlCharacters.rowCount()):
            imp = toInt(self.mdlCharacters.importance(i))
            if not 2 - imp == importance:
                continue
            self.addItem(self.mdlCharacters.icon(i), self.mdlCharacters.name(i), self.mdlCharacters.ID(i))
            self.setItemData(self.count() - 1, self.mdlCharacters.name(i), Qt.ToolTipRole)
    self._various = False
    if self._index or self._indexes:
        self.updateSelectedItem()