private int compareRange(FoundString string1, FoundString string2) {
		if (string1 == null) {  // for this purpose, null are larger than non nulls
			return 1;
		}
		else if (string2 == null) {
			return -1;
		}

		Address end1 = string1.getEndAddress();
		Address start2 = string2.getAddress();
		if (end1.compareTo(start2) < 0) {
			return -1;
		}

		Address start1 = string1.getAddress();
		Address end2 = string2.getEndAddress();
		if (end2.compareTo(start1) < 0) {
			return 1;
		}

		return 0;
	}
returns 0 if the strings (they represent address ranges) have any overlap
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/CombinedStringSearcher.java