code: @Override
      public boolean add(final String s) {
          JsonPrimitive primitive = primitive(s);
          if (!contains(primitive)) {
              return add(primitive);
          } else {
              return false;
          }
      }
docs: Variant of add that takes a string instead of a JsonElement. The inherited add only supports JsonElement.
  
  @param s
  element