Highlight effect when the cursor is over the reference

How can I implement this highlighting effect when the cursor is over an element reference (string)?

image

I have already implemented PsiReferenceContributor and FakeElement for the string part, this already works well, I just need to create the effect.

I was able to achieve something similar to what I need using the HighlightUsagesHandlerFactory