docs: public void addExcludedName(String name) {
          Object obj = lookupQualifiedName(scope, name);
          if (!(obj instanceof Scriptable)) {
              throw new IllegalArgumentException("Object for excluded name " +
                                                 name + " not found.");
          }
          table.put(obj, name);
      }