code: @Nullable
    JSModule getModuleByName(String name) {
      for (JSModule m : modules) {
        if (m.getName().equals(name)) {
          return m;
        }
      }
      return null;
    }
docs: Gets a single module by name.
  
  @return The module, or null if no such module exists.