void () { String text = """ class C: def f(self, x): self.foo = x self.foo = {'foo': self.foo} expr = self.foo """; myFixture.configureByText(PythonFileType.INSTANCE, text); final PyExpression expr = myFixture.findElementByText("expr", PyExpression.class); assertExpressionType("dict[str, Any]", expr); PyExpression dict = myFixture.findElementByText("{'foo': self.foo}", PyExpression.class); assertExpressionType("dict[str, Any]", dict); }