if (file instanceof DBLanguageFile) {
DBLanguageFile dbLanguageFile = (DBLanguageFile) file;
DBLanguage dbLanguage = dbLanguageFile.getDBLanguage();
if (dbLanguage != null) {
ConnectionHandler connectionHandler = dbLanguageFile.getActiveConnection();
DBLanguageSyntaxHighlighter syntaxHighlighter = getSyntaxHighlighter(dbLanguage, connectionHandler);
EditorHighlighter editorHighlighter = HighlighterFactory.createHighlighter(syntaxHighlighter, editor.getColorsScheme());
((EditorEx) editor).setHighlighter(editorHighlighter);
}
}