code: public JavaWriter emitImports(Class<?>... types) throws IOException {
      List<String> classNames = new ArrayList<String>(types.length);
      for (Class<?> classToImport : types) {
        classNames.add(classToImport.getName());
      }
      return emitImports(classNames);
    }
docs: Emit an import for each {@code type} provided. For the duration of the file, all references to
  these classes will be automatically shortened.