code: private Content getClassLinks(LinkInfoImpl.Kind context, Collection<?> list) {
          Content dd = new HtmlTree(HtmlTag.DD);
          boolean isFirst = true;
          for (Object type : list) {
              if (!isFirst) {
                  Content separator = new StringContent(", ");
                  dd.addContent(separator);
              } else {
                  isFirst = false;
              }
              // TODO: should we simply split this method up to avoid instanceof ?
              if (type instanceof TypeElement) {
                  Content link = getLink(
                          new LinkInfoImpl(configuration, context, (TypeElement)(type)));
                  dd.addContent(HtmlTree.CODE(link));
              } else {
                  Content link = getLink(
                          new LinkInfoImpl(configuration, context, ((TypeMirror)type)));
                  dd.addContent(HtmlTree.CODE(link));
              }
          }
          return dd;
      }
docs: Get links to the given classes.
  
  @param context the id of the context where the link will be printed
  @param list the list of classes
  @return a content tree for the class list