int index;  if (color == null) { index = defaultIndex; } else { index = colorTable.indexOf(color); if (index == -1) { index = colorTable.size(); colorTable.addElement(color); }
if (color == null) return defaultIndex; int index = colorTable.indexOf(color); if (index == -1) { index = colorTable.size(); colorTable.addElement(color);
	int getColorIndex(Color color, int defaultIndex) {		int index;				if (color == null) {			index = defaultIndex;		}		else {					index = colorTable.indexOf(color);			if (index == -1) {				index = colorTable.size();				colorTable.addElement(color);			}		}		return index;	}