code: private void addMethodInfo(MethodDoc method, Content dl) {
          ClassDoc[] intfacs = method.containingClass().interfaces();
          MethodDoc overriddenMethod = method.overriddenMethod();
          // Check whether there is any implementation or overridden info to be
          // printed. If no overridden or implementation info needs to be
          // printed, do not print this section.
          if ((intfacs.length > 0 &&
                  new ImplementedMethods(method, this.configuration).build().length > 0) ||
                  overriddenMethod != null) {
              MethodWriterImpl.addImplementsInfo(this, method, dl);
              if (overriddenMethod != null) {
                  MethodWriterImpl.addOverridden(this,
                          method.overriddenType(), overriddenMethod, dl);
              }
          }
      }
docs: Add method information.
  
  @param method the method to be documented
  @param dl the content tree to which the method information will be added