boolean (HighlighterIterator iterator, int offset) { final IElementType tokenType = iterator.getTokenType(); if (tokenType == GroovyTokenTypes.mGSTRING_BEGIN || tokenType == GroovyTokenTypes.mREGEX_BEGIN) return true; if (GroovyTokenSets.STRING_LITERALS.contains(tokenType)) { int start = iterator.getStart(); return offset == start; } return false; }