How to implement these markers on editor vertical scroll bar?

I'm developing a plugin where for few lines these markers to be added so that user can go directly to the highlighted area. Please throw some light. I'm not working with psiFile but just with text.  Currently using editor markup model and adding range highlighters by giving line numbers. Please see attached screenshot.


Please sign in to leave a comment.