public static Iterable<File> applyCwd(File cwd,Iterable<File> files){
  if (files != null) {
    List<File> result=new ArrayList<File>();
    for (    File f : files) {
      result.add(applyCwd(cwd,f));
    }
    return result;
  }
 else {
    return null;
  }
}

public static Iterable < File > applyCwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new ArrayList < File > ( ) ; for ( File f : files ) { result . add ( applyCwd ( cwd , f ) ) ; } return result ; } else { return null ; } }
given an iterable of files and a " current working directory " returns an iterable where the files that were relative are now absolute after having the " cwd " applied to them as their parent directory . files in the list that were already absolute are returned unmodified .
