private void createTranslateActions(List<StringTranslationService> newServices) {
		for (DockingAction prevAction : translationActions) {
			tool.removeAction(prevAction);
		}
		translationActions.clear();
		translationServices.clear();

		translationServices.addAll(newServices);

		for (StringTranslationService service : translationServices) {
			DockingAction action = new TranslateAction(getName(), service);
			translationActions.add(action);
			tool.addAction(action);
		}
	}
Plugin that provides string translation services on {@link Data} items that are
strings or arrays of chars.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/translate/TranslateStringsPlugin.java