code: public static HighlightErrorConverter newInstance(Configuration config, String[] options) {
          if (options.length != 1) {
              LOGGER.error("Incorrect number of options on highlightError. Expected 1 received " + options.length);
              return null;
          }
          if (options[0] == null) {
              LOGGER.error("No pattern supplied on highlightError");
              return null;
          }
  
          PatternParser parser = PatternLayout.createPatternParser(config);
          List<PatternFormatter> formatters = parser.parse(options[0]);
          return new HighlightErrorConverter(formatters);
      }
docs: Gets a new instance of the {@link HighlightErrorConverter} with the
  specified options.
  
  @param config The current configuration
  @param options The pattern options
  @return The new instance