private DialogComponentProvider getLegendDialog() {
		if (legendPanel == null) {
			legendPanel = new AddressTypeOverviewLegendPanel(this);
		}

		OverviewColorLegendDialog legendDialog =
			new OverviewColorLegendDialog("Overview Legend", legendPanel, getHelpLocation());
		return legendDialog;
	}
Sets the color to be associated with a given {@link AddressType}

@param type the AddressType for which to assign the color.
@param newColor the new color for the given {@link AddressType}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/addresstype/AddressTypeOverviewColorService.java