builder.append(".").append(replacement);
PsiExpression[] args = toArrayExpression.getArgumentList().getExpressions();
if(args.length == 0) {
builder.append("()");
} else {
<BUG>if(args.length != 1 || !(args[0] instanceof PsiNewExpression)) return;
</BUG>
PsiNewExpression newArray = (PsiNewExpression)args[0];
PsiType arrayType = newArray.getType();
<BUG>if(arrayType == null) return;
</BUG>
String name = arrayType.getCanonicalText();

builder.append(".").append(replacement);
PsiExpression[] args = toArrayExpression.getArgumentList().getExpressions();
if(args.length == 0) {
builder.append("()");
} else {
if(args.length != 1 || !(args[0] instanceof PsiNewExpression)) return null;
PsiNewExpression newArray = (PsiNewExpression)args[0];
PsiType arrayType = newArray.getType();
if(arrayType == null) return null;
String name = arrayType.getCanonicalText();
