private int getUIComponents(Object source) {
		if (source instanceof OutlinerCellRendererImpl) {
			prevRenderer = currentRenderer;
			currentRenderer = (OutlinerCellRendererImpl) source;
			return TEXT;
		} else if (source instanceof OutlineButton) {
			prevRenderer = currentRenderer;
			currentRenderer = ((OutlineButton) source).renderer;
			return ICON;
		} else if (source instanceof OutlineLineNumber) {
			prevRenderer = currentRenderer;
			currentRenderer = ((OutlineLineNumber) source).renderer;
			return ICON;
		} else if (source instanceof OutlineCommentIndicator) {
			prevRenderer = currentRenderer;
			currentRenderer = ((OutlineCommentIndicator) source).renderer;
			return ICON;
		} else {
			// Something went wrong.
			return OTHER;
		}
	}