GrLiteralImpl (@NotNull final String text) { final GrExpression newExpr = GroovyPsiElementFactory.getInstance(getProject()).createExpressionFromText(text); LOG.assertTrue(newExpr instanceof GrLiteral, text); LOG.assertTrue(newExpr.getFirstChild() != null, text); final ASTNode valueNode = getNode().getFirstChildNode(); getNode().replaceChild(valueNode, newExpr.getFirstChild().getNode()); return this; }