private StringTranslationService getSelectedStringTranslationService(boolean ifEnabled) {
		boolean enabled = showTranslateOptionsButton.isSelected();
		return ifEnabled && !enabled ? null
				: (StringTranslationService) translateComboBox.getSelectedItem();
	}
For test/screen shot use

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