void (@NotNull PsiNewExpression expression) { PsiArrayInitializerExpression arrayInitializer = expression.getArrayInitializer(); if (arrayInitializer == null) { super.visitNewExpression(expression); } else { PsiType type = expression.getType(); if (type == null) { type = PsiType.getJavaLangObject(expression.getManager(), expression.getResolveScope()).createArrayType(); } buffer.append('('); arrayInitializer.accept(this); buffer.append(" as "); buffer.append(type.getCanonicalText()); buffer.append(")"); } }