void () { configureAndGetCallExprUnderCaret("mainQualified.py"); Project project = myFixture.getProject(); doPerformanceTestResettingCaches("Navigating to definition", 600, () -> { TypeEvalContext context = TypeEvalContext.userInitiated(project, myFixture.getFile()); PsiElement target = GotoDeclarationAction.findTargetElement(project, myFixture.getEditor(), myFixture.getCaretOffset()); assertNotNull(target); PyFunction function = assertInstanceOf(target.getNavigationElement(), PyFunction.class); assertFalse(PyiUtil.isOverload(function, context)); }); }