public synchronized void record(String message) {
		SpyEvent event = new SpyEvent(message);

		if (buffered.get()) {
			events.add(event);
		}
		else {
			// System.err intentional here for aesthetics
			System.err.println(event.toString(0));
		}
	}
Records messages for later playback.  This can be useful for tracking the order of sequences/
callbacks.
Ghidra/Framework/Docking/src/test/java/ghidra/docking/spy/SpyEventRecorder.java