public void registerUsedModule(String moduleName){
  if (!usedModules.contains(moduleName)) {
    usedModules.add(moduleName);
  }
}

public void registerUsedModule ( String moduleName ) { if ( ! usedModules . contains ( moduleName ) ) { usedModules . add ( moduleName ) ; } }
register a module that is used by the transpiled program .
