Custom language support - Disable code annotations

In order to get colorized underline beneath some PSI elements, I use the Annotator as described in custom language support and also under Syntax Highlighting and Error Highlighting:

However, I'd like also to give the user the option to disable plugin's annotations. For example, disabling inspections can be done easily as described here.

What is my best option to allow disabling code annotations?


Please sign in to leave a comment.