Object () { if (findChildByClass(GrStringInjection.class) != null) return null; final PsiElement fchild = getFirstChild(); if (fchild == null) return null; final PsiElement content = fchild.getNextSibling(); if (content == null || content.getNode().getElementType() != GroovyElementTypes.GSTRING_CONTENT) return null; final String text = content.getText(); StringBuilder chars = new StringBuilder(text.length()); boolean result = GrStringUtil.parseStringCharacters(text, chars, null); return result ? chars.toString() : null; }