String (@Nullable String path, char separatorChar, boolean removeLastSlash, boolean resolveSymlinks) { SymlinkResolver symlinkResolver = resolveSymlinks ? SYMLINK_RESOLVER : null; return toCanonicalPath(path, separatorChar, removeLastSlash, symlinkResolver); }