public static Reference[] getDiffRefs(Reference[] refs) {
		List<Reference> refList = new ArrayList<>();
		for (Reference reference : refs) {
			if (reference.getReferenceType().isFallthrough()) {
				continue; // Discard fallthrough refs, which are handled by Instruction.
			}
			refList.add(reference);
		}
		return refList.toArray(new Reference[refList.size()]);
	}
Gets the references that need to be checked for differences from those that are handed
to it via the refs parameter.
@param refs the references before removing those that we don't want to diff.
@return only the references that should be part of the diff.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramDiff.java