def pick_colors_from_collection(
        self,
        color_picking_operation,
    ):
        """Display specific colors for the user to pick.

        If the user picks one or more colors, a new color
        widget is created for each color and inserted into
        the list of existing ones.
        """
        ### unhighlight colors editor
        self.colors_editor.unhighlight()

        ### offer colors for user to pick by calling the
        ### corresponding color picker operation
        picked_colors = color_picking_operation()

        ### if no picked colors were received, we leave the
        ### method earlier by returning
        if not picked_colors:
            return

        ### otherwise we create new color widgets from the
        ### given colors, insert them and perform needed
        ### setups

        ## reference the insert operation of the list of
        ## existing widgets locally for quicker and easier
        ## access
        insert_widget = self.widgets.insert

        ## calculate the index after the current color
        ## widget
        ##
        ## we'll insert colors from that position
        index_wherein_to_insert = self.colors_editor.current_color_index + 1

        ## create and insert a color widget for each
        ## picked color in the index we defined,
        ## iterating the colors in reverse order, so they
        ## end up after the current widget in the original
        ## order (since the later ones are inserted before
        ## the first ones)

        for color in reversed(picked_colors):

            insert_widget(index_wherein_to_insert, Color2D(*COLOR_WIDGET_SIZE, color))

        ## finally, perform setups needed when changing
        ## the number of existing widgets
        self.perform_widget_quantity_setups()
Display specific colors for the user to pick.

        If the user picks one or more colors, a new color
        widget is created for each color and inserted into
        the list of existing ones.
        
nodezator/colorsman/editor/panel/colorsop.py