code: protected void addContents(Iterable<? extends Element> classlist, boolean wantFrames,
                                 Content content) {
          for (Element element : classlist) {
              TypeElement typeElement = (TypeElement)element;
              if (!utils.isCoreClass(typeElement)) {
                  continue;
              }
              Content label = interfaceName(typeElement, false);
              Content linkContent;
              if (wantFrames) {
                  linkContent = getLink(new LinkInfoImpl(configuration,
                                                         LinkInfoImpl.Kind.ALL_CLASSES_FRAME, typeElement).label(label).target("classFrame"));
              } else {
                  linkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.DEFAULT, typeElement).label(label));
              }
              Content li = HtmlTree.LI(linkContent);
              content.addContent(li);
          }
      }
docs: Given a list of classes, generate links for each class or interface.
  If the class kind is interface, print it in the italics font. Also all
  links should target the right-hand frame. If clicked on any class name
  in this page, appropriate class page should get opened in the right-hand
  frame.
  
  @param classlist Sorted list of classes.
  @param wantFrames True if we want frames.
  @param content HtmlTree content to which the links will be added