code: @Override
      public <T extends Option> T getSingleOption(final Class<T> optionType) {
          requestedOptionTypes.add(optionType);
          T[] filter = filter(optionType, combinedOptions);
  
          if (filter.length > 0) {
              return filter[filter.length - 1];
          }
          else {
              return null;
          }
      }
docs: Helper method for single options. Last occurence has precedence. (support overwrite).