void () { configure(); PsiMethodCallExpression fooCall = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiMethodCallExpression.class); assertNotNull(fooCall.getType()); }