void () { final String text = """ from typing import TypedDict class Point(TypedDict): coordinateX: int coordinateY: int z: int def draw(point: Point): return point["coo<caret>"]"""; runWithLanguageLevel( LanguageLevel.getLatest(), () -> { myFixture.configureByText(PythonFileType.INSTANCE, text); myFixture.completeBasic(); myFixture.checkResult(text); assertContainsElements(myFixture.getLookupElementStrings(), "\"coordinateX\"", "\"coordinateY\""); assertDoesntContain(myFixture.getLookupElementStrings(), "\"z\""); } ); }