void setMostRecentColor(Color c) {

		// Do not add duplicates next to each other; duplicates are ok if separated by other colors,
		// as this shows color choices over time and provides the user some context.
		Color lastColor = colors[0];
		if (Objects.equals(lastColor, c)) {
			return;
		}

		System.arraycopy(colors, 0, colors, 1, colors.length - 1);
		colors[0] = c;
		repaint();
	}
The background color, foreground color, and font are already set to the
defaults from the defaults table before this method is called.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/SettableColorSwatchChooserPanel.java