I am not a big fan of functions that are seemingly only meant to modify something but which also return the modification result.

Perhaps rename this to `addAndReturnStyleToStyleTree`. Better names are welcome. :)