void (PsiAnnotationMemberValue value, final StringBuilder buffer) { value.accept(new JavaElementVisitor() { @Override public void visitExpression(PsiExpression expression) { buffer.append(expression.getText()); } @Override public void visitNewExpression(PsiNewExpression expression) { PsiArrayInitializerExpression arrayInitializer = expression.getArrayInitializer(); if (arrayInitializer == null) { super.visitNewExpression(expression); } else { buffer.append(")"); } } }); }