void () { configure(); PsiMethodCallExpression getDataCall = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiMethodCallExpression.class); assertNotNull(getDataCall); //ensure applicability is not called recursively assertNotNull(getDataCall.getType()); }