code: public static <T> void verifyDeprecatedOption(String deprecatedOption, T value, String option) {
          if (value != null) {
              LOGGER.warn("The option '" + deprecatedOption + "' is deprecated, use '" + option + "' instead.");
          }
      }
docs: Verify if a deprecated option has been used and emit a warning.
  
  @param deprecatedOption
  The name of the deprecated option.
  @param value
  The provided value.
  @param option
  The option to use.
  @param <T>
  The value type.