code: public static FileInfo fromItemInfo(PathCodec pathCodec, GoogleCloudStorageItemInfo itemInfo) {
      if (itemInfo.isRoot()) {
        return ROOT_INFO;
      }
      URI path = pathCodec.getPath(itemInfo.getBucketName(), itemInfo.getObjectName(), true);
      return new FileInfo(path, itemInfo);
    }
docs: Handy factory method for constructing a FileInfo from a GoogleCloudStorageItemInfo while
  potentially returning a singleton instead of really constructing an object for cases like ROOT.