public List<String> getCharsetNamesWithCharSize(int size) {
		List<String> names = new ArrayList<>();
		for (String name : charsetNames) {
			if (getCharsetCharSize(name) == size) {
				names.add(name);
			}
		}
		return names;
	}
Returns list of {@link Charset}s that encode with the number of bytes specified.
@param size the number of bytes for the {@link Charset} encoding.
@return Charsets that encode one byte characters.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/CharsetInfo.java