EditorEx () { EditorEx editor = super.createEditor(); if (myLanguage != null) { FileType fileType = myLanguage.getAssociatedFileType(); editor.setHighlighter(HighlighterFactory.createHighlighter(myProject, fileType)); } editor.setEmbeddedIntoDialogWrapper(true); return editor; }