@SuppressWarnings("unchecked")
	// non-generic xml library warning
	@Override
	public void readConfigState(SaveState saveState) {
		Element xmlElement = saveState.getXmlElement(COLOR_HISTORY_XML_NAME);
		if (xmlElement != null) {
			List<Color> savedColorHistory = new ArrayList<>();
			List<Element> colorElements = xmlElement.getChildren("COLOR");
			for (Element element : colorElements) {
				String rgbString = element.getAttributeValue("RGB");
				int rgba = Integer.parseInt(rgbString);
				savedColorHistory.add(ColorUtils.getColor(rgba));
			}

			service.setColorHistory(savedColorHistory);
		}
	}
A plugin to provider actions for manipulating the colors of the {@link CodeViewerService}.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/colorizer/ColorizingPlugin.java