void () { PsiFile file = myFixture.configureByText("Test.java", """ class Foo { void fooMethod() {} int fooField = 0; class FooClass {} } class Bar { class Baz { void quxMethod() {} } }"""); checkCompletion(file, "", 0, "Foo", "Bar"); checkCompletion(file, "F", 1, "Foo", "fooMethod", "fooField", "FooClass"); checkCompletion(file, "Foo::", 0, "Foo::fooMethod"); checkCompletion(file, "Foo#", 0, "Foo#fooMethod", "Foo#fooField"); checkCompletion(file, "Foo.", 0, "Foo.fooMethod", "Foo.fooField", "Foo.FooClass"); checkCompletion(file, "B", 1, "Bar", "Baz"); checkCompletion(file, "Bar.", 1, "Bar.Baz"); checkCompletion(file, "Bar.Baz#", 1, "Bar.Baz#quxMethod"); }