public static String replaceAll(@Nonnull Pattern pattern, @Nonnull String input,
			@Nonnull Function<MatchResult, String> replacer) {
		Matcher matcher = pattern.matcher(input);
		matcher.reset();
		boolean result = matcher.find();
		if (result) {
			StringBuffer sb = new StringBuffer();
			do {
				String replacement = replacer.apply(matcher);
				matcher.appendReplacement(sb, replacement);
				result = matcher.find();
			} while (result);
			matcher.appendTail(sb);
			return sb.toString();
		}
		return input;
	}
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