private String buildFileInfo(StackTraceElement stackTraceElement) {
		String filename = stackTraceElement.getFileName();
		int lineNumber = stackTraceElement.getLineNumber();

		synchronized (buffer) { // lock the shared resource   
			buffer.append(' ').append('(');
			buffer.append(filename);
			buffer.append(':');
			buffer.append(lineNumber);
			buffer.append(')');
			String value = buffer.toString();
			buffer.delete(0, buffer.length());
			return value;
		}
	}
Appends the desired hyperlink to the existing event message.

@param event the current log event
@param toAppendTo the string to append to
Ghidra/Framework/Generic/src/main/java/log/Log4jDevelopmentPatternConverter.java