void (@NotNull GrLiteral literal) { final IElementType elementType = literal.getFirstChild().getNode().getElementType(); if (GroovyTokenSets.STRING_LITERALS.contains(elementType)) { checkStringLiteral(literal); } else if (elementType == GroovyTokenTypes.mREGEX_LITERAL || elementType == GroovyTokenTypes.mDOLLAR_SLASH_REGEX_LITERAL) { checkRegexLiteral(literal.getFirstChild()); } }