public void checkOpen() {
    if (!open.get()) {
      throw new ClosedFileSystemException();
    }
  }
Checks that the file system is open, throwing {@link ClosedFileSystemException} if it is not.
jimfs/src/main/java/com/google/common/jimfs/FileSystemState.java