You mean something like
```
function getElementColor(element) {
    return Color.fromCssColorString(window.getComputedStyle(element).getPropertyValue('color'));
}
```
I suppose it makes the code cleaner to read, but it doesn't really buy you anything.  I can make the change.