code: private JavaWriter emitCompressedType(String type) throws IOException {
      if (isCompressingTypes) {
        out.write(compressType(type));
      } else {
        out.write(type);
      }
      return this;
    }
docs: Emits a name like {@code java.lang.String} or {@code java.util.List<java.lang.String>},
  compressing it with imports if possible. Type compression will only be enabled if
  {@link #isCompressingTypes} is true.