private static LocationDescriptor createXRefLocationDescriptor(ProgramLocation location) {
		if (location instanceof XRefHeaderFieldLocation) {
			return null;
		}

		return new XRefLocationDescriptor(location, location.getProgram());
	}
HACK: We are watching for a condition where the goto service can send out goto locations
that are not correct for a program, but can still be handled by that program.
<p>
As an example, the goto service may be trying to handle a
FunctionSignatureFieldLocation.  Further, let's
say that the address for that location is 100.  Now suppose that program 'foo' has an
address '100', but does not have a function at that location.  'foo' will decide  to
handle the location event regardless.  In this scenario, where a program handles a location
that is not correct (a function location where there is no function), the
LocationDescriptor objects will not work and will throw exceptions.

see SCR 4642
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java