code: private int maxOptionLength(List<OptionInfo> optList, boolean showUnpublicized) {
      int maxLength = 0;
      for (OptionInfo oi : optList) {
        if (oi.unpublicized && !showUnpublicized) {
          continue;
        }
        int len = oi.synopsis().length();
        if (len > maxLength) {
          maxLength = len;
        }
      }
      return maxLength;
    }
docs: Return the length of the longest synopsis message in a list of options. Useful for aligning
  options in usage strings.
  
  @param optList the options whose synopsis messages to measure
  @param showUnpublicized if true, include unpublicized options in the computation
  @return the length of the longest synopsis message in a list of options