void (EditorEx editor, @Nullable SyntaxHighlighter highlighter) { EditorColorsScheme editorColorsScheme = EditorColorsManager.getInstance().getGlobalScheme(); LayeredLexerEditorHighlighter layeredHighlighter = new LayeredLexerEditorHighlighter(new TemplateHighlighter(), editorColorsScheme); layeredHighlighter.registerLayer(TemplateTokenType.TEXT, new LayerDescriptor(ObjectUtils.notNull(highlighter, new PlainSyntaxHighlighter()), "")); editor.setHighlighter(layeredHighlighter); }