code: public static Set<ClassTemplateSpec> allReferencedTypes(ClassTemplateSpec spec) {
      return findAllReferencedTypes(
          directReferencedTypes(spec),
          Collections.<ClassTemplateSpec>emptySet(),
          Collections.<ClassTemplateSpec>emptySet());
    }
docs: Return all types directly or transitively referenced by this type.