@CanIgnoreReturnValue
  public PathSubject isRegularFile() {
    exists(); // check for regular fileness should imply check for existence

    if (!Files.isRegularFile(actual, linkOptions)) {
      failWithActual(simpleFact("expected to be regular file"));
    }
    return this;
  }
Asserts that the path is a regular file.
jimfs/src/test/java/com/google/common/jimfs/PathSubject.java