void () { configure(); PsiFile file = getFile(); Editor editor = getEditor(); PsiElement element = file.findElementAt(editor.getCaretModel().getOffset()); PsiMethodCallExpression expression = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); assertNotNull(expression.getType()); }