code: def _BuildKeyHierarchy(self, subkeys, values):
      
      if subkeys:
        for registry_key in subkeys:
          name = registry_key.name.upper()
          if name in self._subkeys:
            continue
          self._subkeys[name] = registry_key
  
          # pylint: disable=protected-access
          registry_key._key_path = key_paths.JoinKeyPath([
              self._key_path, registry_key.name])
  
      if values:
        for registry_value in values:
          name = registry_value.name.upper()
          if name in self._values:
            continue
          self._values[name] = registry_value
docs: Builds the Windows Registry key hierarchy.
  
      Args:
        subkeys (list[FakeWinRegistryKey]): list of subkeys.
        values (list[FakeWinRegistryValue]): list of values.