code: private void addAnnotations(AnnotationTypeDoc annotationDoc, LinkInfoImpl linkInfo,
              ContentBuilder annotation, AnnotationDesc.ElementValuePair[] pairs,
              int indent, boolean linkBreak) {
          linkInfo.label = new StringContent("@" + annotationDoc.name());
          annotation.addContent(getLink(linkInfo));
          if (pairs.length > 0) {
              annotation.addContent("(");
              for (int j = 0; j < pairs.length; j++) {
                  if (j > 0) {
                      annotation.addContent(",");
                      if (linkBreak) {
                          annotation.addContent(DocletConstants.NL);
                          int spaces = annotationDoc.name().length() + 2;
                          for (int k = 0; k < (spaces + indent); k++) {
                              annotation.addContent(" ");
                          }
                      }
                  }
                  annotation.addContent(getDocLink(LinkInfoImpl.Kind.ANNOTATION,
                          pairs[j].element(), pairs[j].element().name(), false));
                  annotation.addContent("=");
                  AnnotationValue annotationValue = pairs[j].value();
                  List<AnnotationValue> annotationTypeValues = new ArrayList<>();
                  if (annotationValue.value() instanceof AnnotationValue[]) {
                      AnnotationValue[] annotationArray =
                              (AnnotationValue[]) annotationValue.value();
                      annotationTypeValues.addAll(Arrays.asList(annotationArray));
                  } else {
                      annotationTypeValues.add(annotationValue);
                  }
                  annotation.addContent(annotationTypeValues.size() == 1 ? "" : "{");
                  String sep = "";
                  for (AnnotationValue av : annotationTypeValues) {
                      annotation.addContent(sep);
                      annotation.addContent(annotationValueToContent(av));
                      sep = ",";
                  }
                  annotation.addContent(annotationTypeValues.size() == 1 ? "" : "}");
                  isContainerDocumented = false;
              }
              annotation.addContent(")");
          }
      }
docs: Add annotation to the annotation string.
  
  @param annotationDoc the annotation being documented
  @param linkInfo the information about the link
  @param annotation the annotation string to which the annotation will be added
  @param pairs annotation type element and value pairs
  @param indent the number of extra spaces to indent the annotations.
  @param linkBreak if true, add new line between each member value