code: public List<Option> getOptions(boolean includeDisabled) {
          List< Option> result = new ArrayList<>();
  
          for (OptionGroup group : optionGroups.values()) {
              result.addAll(group.getOptions(includeDisabled));
          }
  
          return result;
      }
docs: Returns all the options in this element, in list order.
  @param includeDisabled Indicates if disabled options should be included in the list.
  If a group itself is disabled, its options are also considered as disabled.
  @return List of options