public static Path relativize(Path parent, Path child) {
		if (child == null) {
			return null;
		}

		int last = child.getNameCount();
		for (int i = 0; i < last; i++) {
			Path sp = child.subpath(i, last);
			if (sp.startsWith(parent)) {
				return sp;
			}
		}
		return null;
	}
Returns a path object using the given source file path as the source of the given relative 
path.  The returned path represents a local file on the file system.

@param srcFile the source file path
@param relativePath the relative path
@return a path or null if the resolved path is not a local file
Ghidra/Framework/Help/src/main/java/help/HelpBuildUtils.java