def METHOD_NAME(self, lut):
    index = self.findLutColors(lut)
    if index == -1:
        index = self.count()
        self.addItem("Custom")
        self.setItemIcon(index, self.getIconPreview(colors=lut))
        self.setItemData(index, None, role=self.LUT_NAME)
        self.setItemData(index, lut, role=self.LUT_COLORS)
    self.setCurrentIndex(index)