void () { PsiFile file = myFixture.configureByText(JavaFileType.INSTANCE, "class A { void m(int... is) {} {m(nu<caret>ll);}}"); PsiExpression expression = PsiTreeUtil.getParentOfType(file.findElementAt(myFixture.getEditor().getCaretModel().getOffset()), PsiExpression.class); assertNotNull(expression); PsiType type = CommonJavaRefactoringUtil.getTypeByExpression(expression); assertTrue(type instanceof PsiArrayType); }