def METHOD_NAME(self, path):
    palette_name = self.options.palette
    palette = ThreadCatalog().get_palette_by_name(palette_name)
    colors = []
    palette_numbers = []
    palette_colors = []
    for color in palette:
        palette_numbers.append(color.number)
        palette_colors.append('#%s' % color.hex_digits.lower())
    with open(path) as threadlist:
        for line in threadlist:
            if line[0].isdigit():
                # some threadlists may add a # in front of the catalog number
                # let's remove it from the entire string before splitting it up
                thread = line.replace('#', '').split()
                catalog_number = set(thread[1:]).intersection(palette_numbers)
                if catalog_number:
                    color_index = palette_numbers.index(next(iter(catalog_number)))
                    colors.append([palette_colors[color_index], None])
                else:
                    # No color found
                    colors.append([None, None])
    return colors