public static <T> T findNearestWith(Path dir, String fileName, Function<Path, T> accept) {
		T result = findNearestLocalWith(dir, fileName, accept);
		if (result == null) {
			Path file = Settings.getConfigDir().resolve(fileName);
			if (Files.isRegularFile(file) && Files.isReadable(file)) {
				result = accept.apply(file);
			}
		}
		return result;
	}
Determines the path to the JAR that contains the given class

@return An actual Path if it was found, or an empty path if it was not
src/main/java/dev/jbang/util/Util.java