void () { final String text = """ class MyClass(object): def __init__(self): self.foo = 42 def baz(self): pass MyClass.bar = 42 MyClass.<caret>"""; myFixture.configureByText(PythonFileType.INSTANCE, text); myFixture.completeBasic(); List<String> suggested = myFixture.getLookupElementStrings(); assertContainsElements(suggested, "bar", "baz"); assertDoesntContain(suggested, "foo"); }