code: public boolean recordType(JSTypeExpression type) {
      if (type != null && !hasAnyTypeRelatedTags()) {
        currentInfo.setType(type);
        populated = true;
        return true;
      } else {
        return false;
      }
    }
docs: Records a type.
  
  @return {@code true} if the type was recorded and {@code false} if
  it is invalid or was already defined