Bug 163345 [Field Assist] - API - Deprecate DecoratedField and related classes
If ControlDecoration is adopted in replacement of DecoratedField by all existing SDK clients, then we should deprecate DecoratedField.
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java
displays.put(color, display);
		return color;
	}
	/*
	 * Dispose any colors that were allocated for the given display.
	 */
	private static void disposeColors(Display display) {
		List toBeRemoved = new ArrayList(1);
		if (DEBUG) {
			System.out.println("Display map is " + displays.toString()); 
			System.out.println("Color map is " + requiredFieldColorMap.toString()); 
		}
		
		for (Iterator i = displays.keySet().iterator(); i.hasNext();) {
			Color color = (Color) i.next();
			if (((Display) displays.get(color)).equals(display)) {
				
				toBeRemoved.add(color);
				
				
				List toBeRemovedFromRequiredMap = new ArrayList(1);
				for (Iterator iter = requiredFieldColorMap.keySet().iterator(); iter
						.hasNext();) {
					Color bgColor = (Color) iter.next();
					if (((Color) requiredFieldColorMap.get(bgColor))
							.equals(color)) {
						
						toBeRemovedFromRequiredMap.add(bgColor);
					}