protected Color fromUiResource(Color color) {
		if (color instanceof GColorUIResource uiResource) {
			return uiResource.toGColor();
		}
		return color;
	}
Checks and converts any {@link GColorUIResource} to a {@link GColor}
@param color the color to check if it is a {@link UIResource}
@return either the given color or if it is a {@link GColorUIResource}, then a plain
{@link GColor} instance referring to the same theme color  property id.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/support/GTreeRenderer.java