public void setRequireValidStringOption(boolean b) {
		requireValidStringCB.setSelected(b);
		updateOptionsAndRefresh();
	}
For test/screen shot use

@param b boolean
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java