Tokenizer (PsiElement element) { if (TokenSets.STRING_LITERAL_SET.contains(element.getNode().getElementType())) { return myStringTokenizer; } if (element instanceof GrNamedElement) { final PsiElement name = ((GrNamedElement)element).getNameIdentifierGroovy(); if (TokenSets.STRING_LITERAL_SET.contains(name.getNode().getElementType())) { return EMPTY_TOKENIZER; } } if (element instanceof PsiDocComment) return myDocCommentTokenizer; //if (element instanceof GrLiteralImpl && ((GrLiteralImpl)element).isStringLiteral()) return myStringTokenizer; return super.getTokenizer(element); }