public static Icon getIconForFileSystem(String url) {
    String schema = "file";
    if (null != url) {
      int indexOf = url.indexOf("://");
      if (indexOf > 0) {
        schema = url.substring(0, indexOf);
      }
    }
    return schemeIconMap.get(schema);
  }
Returns whether a folder contains a given file

@param folder A folder
@param file   A file
@return whether a folder contains a given file
olv-vfs/src/main/java/pl/otros/vfs/browser/util/VFSUtils.java