code: public void inherit(DocFinder.Input input, DocFinder.Output output) {
          ClassDoc exception;
          if (input.tagId == null) {
              ThrowsTag throwsTag = (ThrowsTag) input.tag;
              exception = throwsTag.exception();
              input.tagId = exception == null ?
                  throwsTag.exceptionName() :
                  throwsTag.exception().qualifiedName();
          } else {
              exception = input.element.containingClass().findClass(input.tagId);
          }
  
          for (ThrowsTag tag : ((MethodDoc)input.element).throwsTags()) {
              if (input.tagId.equals(tag.exceptionName()) ||
                  (tag.exception() != null &&
                   (input.tagId.equals(tag.exception().qualifiedName())))) {
                  output.holder = input.element;
                  output.holderTag = tag;
                  output.inlineTags = input.isFirstSentence ?
                                      tag.firstSentenceTags() : tag.inlineTags();
                  output.tagList.add(tag);
              } else if (exception != null && tag.exception() != null &&
                       tag.exception().subclassOf(exception)) {
                  output.tagList.add(tag);
              }
          }
      }
docs: {@inheritDoc}