          """ Insert an item into a config section """
          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
          config.optionxform = str
          helptext = option["helptext"]
          helptext = self.format_help(helptext, is_section=False)
          config.set(section, helptext)
          config.set(section, item, str(default))
          logger.debug("Inserted item: '%s'", item)
  
 
</s> remove                      "config: '%s')", section, item, default, option["helptext"], config)
 </s> add                      "config: '%s')", section, item, default, option.helptext, config) </s> remove     def insert_config_item(self, section, item, default, option,
                           config=None):
        """ Insert an item into a config section """
 </s> add     def _insert_config_item(self,
                            section: str,
                            item: str,
                            default: ConfigValueType,
                            option: ConfigItem,
                            config: Optional[ConfigParser] = None) -> None:
        """ Insert an item into a config section

        Parameters
        ----------
        section: str
            The section to insert the item into
        item: str
            The name of the item to insert
        default: ConfigValueType
            The default value for the item
        option: :class:`ConfigItem`
            The configuration option to insert
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """ </s> remove         config.optionxform = str
 </s> add         config.optionxform = str  # type:ignore </s> remove     def insert_config_section(self, section, helptext, config=None):
        """ Insert a section into the config """
 </s> add     def insert_config_section(self,
                              section: str,
                              helptext: str,
                              config: Optional[ConfigParser] = None) -> None:
        """ Insert a section into the config

        Parameters
        ----------
        section: str
            The section title to insert
        helptext: str
            The help text for the config section
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """ </s> remove     @staticmethod
    def format_help(helptext, is_section=False):
        """ Format comments for default ini file """
 </s> add     @classmethod
    def format_help(cls, helptext: str, is_section: bool = False) -> str:
        """ Format comments for default ini file

        Parameters
        ----------
        helptext: str
            The help text to be formatted
        is_section: bool, optional
            ``True`` if the help text pertains to a section. ``False`` if it pertains to an item.
            Default: ``True``

        Returns
        -------
        str
            The formatted help text
        """
        config.optionxform = str  # type:ignore
        helptext = option.helptext
          """ Insert an item into a config section """
          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
        config.optionxform = str  # type:ignore
        helptext = option.helptext
        config.optionxform = str  # type:ignore
        helptext = option.helptext
          helptext = self.format_help(helptext, is_section=False)
          config.set(section, helptext)
          config.set(section, item, str(default))
          logger.debug("Inserted item: '%s'", item)
  
keep keep keep keep replace replace keep keep keep keep keep
 Preview - Allow mask color/opacity configuration
  - typing: lib.config
  - docs: lib.config
  - bugfix: popup_configure - keep assets on top 
lib/config.py