boolean (List<? extends PsiExpression> expressions) { if (expressions.size() == 1) { final PsiExpression expression = expressions.get(0); return expression instanceof PsiNewExpression && ((PsiNewExpression)expression).getAnonymousClass() != null; } return true; }