code: public void addDependency(JSModule dep) {
      checkNotNull(dep);
      Preconditions.checkState(dep != this, "Cannot add dependency on self", this);
      deps.add(dep);
    }
docs: Adds a dependency on another module.