code: public boolean recordThrowType(JSTypeExpression type) {
      if (type != null && !hasAnySingletonTypeTags()) {
        currentInfo.declareThrows(type);
        populated = true;
        return true;
      }
      return false;
    }
docs: Records a thrown type.