public void saveState() {
		if (colorChooser != null) {
			colorChooser.addColorToHistory(colorChooser.getColor());
		}
	}
Property Editor for Colors. Uses a {@link GhidraColorChooser} as its custom component
Ghidra/Framework/Docking/src/main/java/docking/options/editor/ColorPropertyEditor.java