GrAnnotationMemberValue (PsiAnnotationMemberValue value) { final StringBuilder buffer = new StringBuilder(); buffer.append("@A("); newMethod(value, buffer); buffer.append(")"); try { return GroovyPsiElementFactory.getInstance(value.getProject()).createAnnotationFromText(buffer.toString()); } catch (IncorrectOperationException e) { return null; } }