private int nextFileId() {
    return idGenerator.getAndIncrement();
  }
Creates a new file factory using the given disk for regular files and the given time source.
jimfs/src/main/java/com/google/common/jimfs/FileFactory.java