public static boolean isRegularFile(Path path) {
		// Actually fallback to java.io package if possible,
		// because IO is faster than NIO when for file status checking.
		return isOnDefaultFileSystem(path) ? path.toFile().isFile() : Files.isRegularFile(path);
	}
Tests whether the file denoted by a path is a normal file.

@param path
		Path to check.

@return {@code true} if file is a regular file.
recaf-core/src/main/java/software/coley/recaf/util/IOUtil.java