PyCallExpression (@NotNull String fileName) { myFixture.configureByFile(fileName); PsiElement underCaret = myFixture.getFile().findElementAt(myFixture.getCaretOffset()); assertNotNull(underCaret); PyCallExpression call = PsiTreeUtil.getParentOfType(underCaret, PyCallExpression.class); assertNotNull(call); return call; }