private boolean pureDataReferencesOnly(Program program, Address addrToCheck) {
			ReferenceIterator referencesTo = program.getReferenceManager().getReferencesTo(addrToCheck);
			if (!referencesTo.hasNext()) {
				return false;
			}
			for (Reference reference : referencesTo) {
				RefType refType = reference.getReferenceType();
				if (refType.isFlow()) {
					return false;
				}
				if (refType.isRead() || refType.isWrite()) {
					return false;
				}
				if (refType.isData()) {
					continue;
				}
				return false;
			}
			return true;
		}
Check if there are only pure data references to the location

@param program program to check
@param addrToCheck location to check
@return true if there are only pure data references (no flow, or r/w)
Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FunctionStartAnalyzer.java