@Override
	public void dispose() {
		if (options != null) {
			options.removeOptionsChangeListener(this);
			options = null;
		}
	}
A listing or decompiler hover that employs some degree of configurability.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/hover/AbstractConfigurableHover.java