private Set<UnicodeScript> getAllowedScripts() {
		Set<UnicodeScript> results = EnumSet.noneOf(UnicodeScript.class);
		if (allowAnyScriptButton.isSelected()) {
			results.addAll(EnumSet.allOf(UnicodeScript.class));
			results.remove(UnicodeScript.LATIN);
			results.remove(UnicodeScript.COMMON);
		}

		if (allowLatinScriptButton.isSelected()) {
			results.add(UnicodeScript.LATIN);
		}
		if (allowCommonScriptButton.isSelected()) {
			results.add(UnicodeScript.COMMON);
		}
		return results;
	}
For test/screen shot use

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