code: private static Name checkNotReserved(Name name, String action) {
      if (isReserved(name)) {
        throw new IllegalArgumentException("cannot " + action + ": " + name);
      }
      return name;
    }
docs: Checks that the given name is not "." or "..". Those names cannot be set/removed by users.