Adding CodingMirror addons in an extension

The solution for this problem should be quite simple, but I’ve spent a whole day searching now and just couldn’t find any documentation for it, maybe you could help me.

I am writing an extension for JupyterLab and in this extension I want to add the ‘search/match-highlighter.js’ and ‘hint/show-hint.js’ addons of CodeMirror to all code cells in a notebook. I even managed to define a custom syntax highlighting for a certain MIME type in the consoles, but now I got really stuck and just cannot find the functionality I am searching for in the framework.

So how can you activate these addons in JupyterLab or is it even possible?
Thanks a lot in advance!