void () { doTest(false); PsiMethodCallExpression getReference = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiMethodCallExpression.class); assertNotNull(getReference); PsiType type = getReference.getType(); assertTrue(type instanceof PsiArrayType); assertFalse(type instanceof PsiEllipsisType); }