I'm trying to add a gutter icon to the line that contains a specific PsiElement. I want the gutter icon attached to the line position of the element because if the user edits the file and the element ends up on a different line, I want the gutter icon to move to the line on which the element is on.
I've read through the LineMarkerProvider guide and it seems to be similar to what I want to achieve except I don't have a target for the marker. And the target of the marker can't be null, so using the navigationGutterIconBuilder won't work.
Is there any way to achieve what I'm trying to do?