String () { final PsiElement expression = PsiUtil.skipParentheses(getNameElement(), false); if (expression instanceof GrLiteral) { final Object value = ((GrLiteral)expression).getValue(); if (value instanceof String) { return (String)value; } } final PsiElement element = getNameElement(); final IElementType elemType = element.getNode().getElementType(); if (GroovyTokenTypes.mIDENT == elemType || TokenSets.KEYWORDS.contains(elemType)) { return element.getText(); } return convertToString(GrLiteralImpl.getLiteralValue(element)); }