code: def loadOrInitSettings(self, groupName=None):
          
          groupName = groupName if groupName else self.settingsGroupName
          settings = QtCore.QSettings()
  
          #for key in sorted(settings.allKeys()):
          #    print(key)
  
          if containsSettingsGroup(groupName, settings):
              self.loadSettings(groupName)
          else:
              logger.info("Group {!r} not found, falling back on default settings".format(groupName))
              for item in self.getDefaultItems():
                  self.registerItem(item)
              self.saveSettings(groupName)
              assert containsSettingsGroup(groupName, settings), \
                  "Sanity check failed. {} not found".format(groupName)
docs: Reads the registry items from the persistent settings store, falls back on the
              default plugins if there are no settings in the store for this registry.