src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts/transparentToUndefined
function transparentToUndefined(color: Color | undefined): Color | undefined {
	if (color && color.isTransparent()) {
		return undefined;
	}
	return color;
}