private String getLogMessageCallerInformation(StackTraceElement[] trace, String cutoffName) {

		int lastIndexOfCutoffFilename = -1;
		for (int i = 0; i < trace.length; i++) {
			StackTraceElement element = trace[i];
			String className = element.getClassName();
			String methodName = element.getMethodName();

			// assumption: we have to walk the list of elements until we get past all calls to 
			// the logging API (and maybe a Ghidra API call)
			if (cutoffName.equals(className) || cutoffName.equals(methodName)) {
				lastIndexOfCutoffFilename = i;
			}
		}

		// we want the first filename after the cutoff; we may not have a cutoff
		lastIndexOfCutoffFilename++;

		if (lastIndexOfCutoffFilename >= trace.length) {
			return EMPTY_STRING; // shouldn't happen
		}
		return buildFileInfo(trace[lastIndexOfCutoffFilename]);
	}
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