code: public boolean shouldDocument(ClassSymbol sym) {
          return
              (sym.flags_field&Flags.SYNTHETIC) == 0 && // no synthetics
              (docClasses || getClassDoc(sym).tree != null) &&
              isVisible(sym);
      }
docs: check whether this class should be documented.