However, I would like to plead with you not to do this:
Putting extra things onto the Component class creates new things that will break when we next update that class! (Or worse, it might break the Components in a way that people then blame on us!) And a name like set is pretty generic – who knows what we might want to put there?
I strongly, strongly advise an approach like I described here, using a function imported from your dependency rather than monkey-patching the Component class: