private void updateTrigramStringValidator(String newTrigramModelFilename) {
		if (!newTrigramModelFilename.equals(trigramModelFilename)) {
			trigramModelFilename = newTrigramModelFilename;
			ResourceFile file = getTrigramStringModelFile(trigramModelFilename);
			try {
				stringValidator = file != null ? TrigramStringValidator.read(file) : null;
			}
			catch (IOException e) {
				Msg.error(this, "Error reading string model file", e);
				stringValidator = null;
			}
		}
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java