PyExpression (@NotNull String text) { myFixture.configureByText(PythonFileType.INSTANCE, text); final PyTargetExpression target = myFixture.findElementByText("expr", PyTargetExpression.class); assertNotNull(target); return target.findAssignedValue(); }