void () { configure(); PsiMethodCallExpression innerCall = PsiTreeUtil.getParentOfType(getFile().findElementAt(getEditor().getCaretModel().getOffset()), PsiMethodCallExpression.class); assertNotNull(innerCall); PsiType type = innerCall.getType(); assertEquals("TreeSet<? super java.lang.String>", type.getCanonicalText()); }