docs: def add(self, extension):
          """Adds an extension to the registry
  
          :param extension: Extension object
          :type extension: yamlsettings.extensions.base.YamlSettingsExtension
  
          """
          index = len(self.extensions)
          self.extensions[index] = extension
          for protocol in extension.protocols:
              self.registry[protocol] = index