void () { final PsiExpression psiExpression = findExpression(" List<String> l = new Arr<caret>ayList<>();"); assertInstanceOf(psiExpression, PsiNewExpression.class); assertFalse(PsiPolyExpressionUtil.hasStandaloneForm(psiExpression)); assertTrue(PsiPolyExpressionUtil.isPolyExpression(psiExpression)); }