Object (@Nullable GrArgumentLabel label) { if (label == null) return null; final PsiElement element = label.getNameElement(); if (element instanceof GrExpression) { final Object value = JavaPsiFacade.getInstance(label.getProject()).getConstantEvaluationHelper().computeConstantExpression(element); if (value != null) return value; } final IElementType elemType = element.getNode().getElementType(); if (GroovyTokenTypes.mIDENT == elemType || TokenSets.KEYWORDS.contains(elemType)) { return element.getText(); } return GrLiteralImpl.getLiteralValue(element); }