static boolean isStateEntirely(AddressRange range,
			Collection<Entry<TraceAddressSnapRange, TraceMemoryState>> stateEntries,
			TraceMemoryState state) {
		if (stateEntries.isEmpty()) {
			return state == TraceMemoryState.UNKNOWN;
		}
		if (stateEntries.size() != 1) {
			return false;
		}
		Entry<TraceAddressSnapRange, TraceMemoryState> ent = stateEntries.iterator().next();
		if (ent.getValue() != state) {
			return false;
		}
		AddressRange entRange = ent.getKey().getRange();
		return entRange.contains(range.getMinAddress()) && entRange.contains(range.getMaxAddress());
	}
Check if the return value of {@link #getStates(long, AddressRange)} or similar represents a
single entry of the given state.

<p>
This method returns false if there is not exactly one entry of the given state whose range
covers the given range. As a special case, an empty collection will cause this method to
return true iff state is {@link TraceMemoryState#UNKNOWN}.

@param range the range to check, usually that passed to
           {@link #getStates(long, AddressRange)}.
@param stateEntries the collection returned by {@link #getStates(long, AddressRange)}.
@param state the expected state
@return true if the state matches
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/memory/TraceMemoryOperations.java