boolean (IElementType elementType) { String id = elementType.getLanguage().getID(); //hardcoded values as in BaseHtmlLexer //js and css dialect uses the same stub id as the parent language return id.equals("JavaScript") || id.equals("CSS"); }