code: public ElementWithOptions setOptions(LinkedHashMap<String, String> options) {
          this.optionGroups.clear();
          for (Map.Entry<String, String> entry : options.entrySet()) {
              this.addOption(entry.getKey(), entry.getValue());
          }
  
          return this;
      }
docs: Replaces all options of this element.
  
  @param options Options to use. {@link LinkedHashMap} to keep options original ordering.
  @return This element