What would be the best practice for creating an element with two actions?

Context: The user must navigate through a tree structure and select any one item from it's contents (including its parents)

I find myself coming up against this situation often. I have a component that requires two actions of the user. In this instance, the user needs to be able to expand all the parents and children AND be able to select(or highlight) them.

enter image description here

I am struggling to find any good examples of this so I thought i'd put it out to the community to see if there is anything I could do.