code: private void addRelatedType(JSType type, JSTypeBitSet related) {
      computeRelatedTypesForNonUnionType(type);
      related.or(relatedBitsets.get(type));
    }
docs: Adds the given type and all its related types to the given bit set.