public static File toFile(JavaFileObject javaFileObject){
  return new File(javaFileObject.getName());
}

public static File toFile ( JavaFileObject javaFileObject ) { return new File ( javaFileObject . getName ( ) ) ; }
gets the file from a java file object .
