private void gatherStringsUpTo(FoundString foundString) {
			int result = compareRange(foundString, nextDefinedString);
			while (result > 0) { // given string is higher in memory than the current string
				if (shouldAddDefinedString(nextDefinedString)) {
					if (!onlyShowWordStrings() ||
						((FoundStringWithWordStatus) nextDefinedString).isHighConfidenceWord()) {
						add(nextDefinedString);
					}
				}

				updateNextString();
				result = compareRange(foundString, nextDefinedString);
			}
		}
Uses the StringsAnalyzer model to determine if the current FoundString is a high confidence word.

@param foundString
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/CombinedStringSearcher.java