def AddImport(self, fully_qualified_class):
    # check to see if it already exists
    class_name = self.GetClassName(fully_qualified_class)
    current_import = self._class_name_to_qualified_name.get(class_name)
    if current_import:
      return current_import == fully_qualified_class
    if fully_qualified_class.startswith('"googleapis/'):
      self._google_imports.add(fully_qualified_class)
    elif self.IsPlatformClass(fully_qualified_class):
      self._platform_imports.add(fully_qualified_class)
    else:
      self._other_imports.add(fully_qualified_class)
    # Now add it to the map
    self._class_name_to_qualified_name[class_name] = fully_qualified_class
    return True
Hash the AFF4Stream and add it to the NSRLFile's index.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/cpp_import_manager.py/CppImportManager.AddImport--crossover with--dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/filestore.py/NSRLFileStore.AddFile