code: private void processEnumJavadoc(Options.OptionInfo oi) {
      Enum<?>[] constants = (Enum<?>[]) oi.baseType.getEnumConstants();
      if (constants == null) {
        return;
      }
  
      oi.enumJdoc = new LinkedHashMap<>();
  
      for (Enum<?> constant : constants) {
        assert oi.enumJdoc != null : "@AssumeAssertion(nullness): bug in flow?";
        oi.enumJdoc.put(constant.name(), "");
      }
  
      ClassDoc enumDoc = root.classNamed(oi.baseType.getName());
      if (enumDoc == null) {
        return;
      }
  
      assert oi.enumJdoc != null : "@AssumeAssertion(nullness): bug in flow?";
      for (String name : oi.enumJdoc.keySet()) {
        for (FieldDoc fd : enumDoc.fields()) {
          if (fd.name().equals(name)) {
            if (formatJavadoc) {
              oi.enumJdoc.put(name, fd.commentText());
            } else {
              oi.enumJdoc.put(name, javadocToHtml(fd));
            }
            break;
          }
        }
      }
    }
docs: Initializes {@link Options.OptionInfo#enumJdoc} for the given {@code OptionInfo}: creates a
  mapping from enum constants to their Javadoc
  
  @param oi the enum option whose Javadoc to read