code: protected void makeClassDoc(ClassSymbol clazz, TreePath treePath) {
          ClassDocImpl result = classMap.get(clazz);
          if (result != null) {
              if (treePath != null) result.setTreePath(treePath);
              return;
          }
          if (isAnnotationType((JCClassDecl) treePath.getLeaf())) {   // flags of clazz may not yet be set
              result = new AnnotationTypeDocImpl(this, clazz, treePath);
          } else {
              result = new ClassDocImpl(this, clazz, treePath);
          }
          classMap.put(clazz, result);
      }
docs: Create the ClassDoc (or a subtype) for a class symbol.