String (GrMethodCall call) { GrExpression ie = call.getInvokedExpression(); if (ie instanceof GrReferenceExpression r) { if (r.isQualified()) return null; return r.getReferenceName(); } if (ie instanceof GrLiteralImpl) { Object value = ((GrLiteralImpl)ie).getValue(); if (!(value instanceof String)) return null; return (String)value; } return null; }