public static File searchPaths(Iterable<? extends File> paths,String relFile){
  for (  File path : paths) {
    File f=new File(path,relFile);
    if (f.exists()) {
      return path;
    }
  }
  return null;
}

public static File searchPaths ( Iterable < ? extends File > paths , String relFile ) { for ( File path : paths ) { File f = new File ( path , relFile ) ; if ( f . exists ( ) ) { return path ; } } return null ; }
given a relative file path and a list of " search paths " returns the search path where the file was located
