private List<CompilerDiagnostic> mapDiagnostics(@Nonnull String originalSource,
													@Nonnull String compileSource,
													@Nonnull List<CompilerDiagnostic> diagnostics) {

		int syntheticLineCount = StringUtil.count("\n", StringUtil.cutOffAtFirst(compileSource, originalSource));
		return diagnostics.stream()
				.map(d -> d.withLine(d.line() - syntheticLineCount))
				.toList();
	}
@param originalSource
		Original source provided by the user.
@param compileSource
		Full source of the script to pass to the compiler.
@param diagnostics
		Diagnostics to map position of.

@return List of updated diagnostics.
recaf-core/src/main/java/software/coley/recaf/services/script/JavacScriptEngine.java