PyCallableType () { final PsiReference ref = myFixture.getReferenceAtCaretPosition("/resolve/callee/" + getTestName(false) + ".py"); final PyCallExpression call = PsiTreeUtil.getParentOfType(ref.getElement(), PyCallExpression.class); final TypeEvalContext context = TypeEvalContext.codeAnalysis(myFixture.getProject(), myFixture.getFile()); final PyResolveContext resolveContext = PyResolveContext.defaultContext(context); final List<PyCallableType> callees = call.multiResolveCallee(resolveContext); assertEquals(1, callees.size()); return callees.get(0); }