Bug 279658 [UI] ResourceUtility has unused methods
In org.eclipse.e4.ui.workbench.swt.ResourceUtility, the methods - getGradientColors() - getColor() and field - private ColorRegistry COLOR_REGISTRY all appear unused. In a config with CSS, it handles gradients, colors, and the color registry (although the latter is worth discussing), so I'm not sure the purpose of the methods here.
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/internal/PartRenderingEngine.java
if (elementId != null && elementId.length() != 0) {
			builder.append(" (").append(elementId).append(") ");
		}
		builder.append("Context");
		return builder.toString();
	}
	public Object createGui(MUIElement element, Object parent) {
		if (!element.isToBeRendered())
			return null;
		if (element.getWidget() != null) {
			if (element.getWidget() instanceof Control
					&& parent instanceof Composite) {
				Control ctrl = (Control) element.getWidget();
				if (ctrl.getParent() != parent) {
					ctrl.setParent((Composite) parent);
				}
			}
			return element.getWidget();
		}
		if (element instanceof MContext) {
			MContext ctxt = (MContext) element;
			
			
			if (ctxt.getContext() == null) {
				IEclipseContext parentContext = null;
				if (element.getCurSharedRef() != null) {
					MPlaceholder ph = element.getCurSharedRef();
					parentContext = getContext(ph.getParent());
				} else if (parentContext == null && element.getParent() != null) {
					parentContext = getContext(element.getParent());