code: boolean declareThrows(JSTypeExpression jsType) {
      lazyInitInfo();
  
      if (info.thrownTypes == null) {
        info.thrownTypes = new ArrayList<>();
      }
  
      info.thrownTypes.add(jsType);
      return true;
    }
docs: Declares that the method throws a given type.
  
  @param jsType The type that can be thrown by the method.