code: public static File findFileInFilePath(String name, Collection<File> pathList) {
          if (name == null || pathList == null || pathList.size() == 0)
              return null;
  
          for (File dirPath : pathList) {
              File result = getFile(dirPath, name);
              if (result != null)
                  return result;
          }
          return null;
      }
docs: Look for given file in any of the specified directories, return the first
  one found.
  
  @param name
  The name of the file to find
  @param pathList
  The list of directories to check
  @return The File object if the file is found; null if name is null,
  pathList is null or empty, or file is not found.
  
  @throws SecurityException
  If a security manager exists and its <code>{@link java.lang.SecurityManager#checkRead(java.lang.String)}</code> method denies read access to the file.