private boolean hasExternalReference(CodeUnit codeUnit) {
		Reference[] references =
			program.getReferenceManager().getReferencesFrom(codeUnit.getMinAddress());
		for (Reference ref : references) {
			if (ref.isExternalReference()) {
				return true;
			}
		}
		return false;

	}
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