code: public static void writeJava2File(Filer filer, String packageName, TypeSpec typeSpec) throws IOException {
  		JavaFile target = JavaFile.builder(packageName, typeSpec).skipJavaLangImports(true).build();
  		target.writeTo(filer);
  	}
docs: Write java 2 file.
  
  @param filer the filer
  @param packageName the package name
  @param typeSpec the type spec
  @throws IOException Signals that an I/O exception has occurred.