@Override
  public FileLock tryLock(long position, long size, boolean shared) throws IOException {
    checkLockArguments(position, size, shared);

    // tryLock is not interruptible
    return new FakeFileLock(this, position, size, shared);
  }
Ends a blocking operation, throwing an exception if the thread was interrupted while blocking
or if the channel was closed from another thread.
jimfs/src/main/java/com/google/common/jimfs/JimfsFileChannel.java