I use the MarkupModel to highlight some (Psi) elements. Everything works fine so far, but now I'm stuck on a) how to remove the highlighting once the user preses ESC and b) moving to the next highlighted element after pressing F3 (analogous to the IDEA default behavior).
Could anybody give me some hints on how I can achieve this? Or is there a higher-level API than the MarkupModel to get the described behavior "for free"?
Thanks in advance for any help!