private void suppressRecursiveCallbacks(AtomicBoolean flag, Runnable r) {
		if (flag.compareAndSet(false, true)) {
			r.run();
			flag.set(false);
		}
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java