private String getErrorCountString(int count) {
		return count > 0 ? "<html><sup>[%d]".formatted(count) : null;
	}
For test/screen shot use

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