void () { @NonNls String filePath = BASE_PATH + "/" + getTestName(false) + ".java"; configureByFile(filePath); PsiExpressionList list = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiExpressionList.class); PsiExpression arg = list.getExpressions()[7]; assertEquals(1, highlightErrors().size()); assertEquals(arg, list.getExpressions()[7]); }