private boolean hasCorrectAddressSize(NavigatableActionContext context) {
		int size = context.getProgram().getAddressFactory().getDefaultAddressSpace().getSize();
		if ((size == 64) || (size == 32) || (size == 24) || (size == 16) || (size == 20) ||
			(size == 21)) {
			return true;
		}
		return false;
	}
Plugin to find all possible references to the address at the
current cursor location.  A reference is some set of bytes that
when treated as an address would be the address of the current
cursor location.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindPossibleReferencesPlugin.java