code: @Nullable
    private Module getModuleFromScopeRoot(Node moduleBody) {
      if (moduleBody.isModuleBody()) {
        // TODO(b/128633181): handle ES modules here
        Node scriptNode = moduleBody.getParent();
        checkState(
            scriptNode.getBooleanProp(Node.GOOG_MODULE),
            "Typechecking of non-goog-modules not supported");
        Node googModuleCall = moduleBody.getFirstChild();
        String namespace = googModuleCall.getFirstChild().getSecondChild().getString();
        return moduleMap.getClosureModule(namespace);
  
      } else if (isGoogLoadModuleBlock(moduleBody)) {
        Node googModuleCall = moduleBody.getFirstChild();
        String namespace = googModuleCall.getFirstChild().getSecondChild().getString();
        return moduleMap.getClosureModule(namespace);
      }
      return null;
    }
docs: Returns the {@link Module} corresponding to this scope root, or null if not a module root.