void () { myFixture.configureByText("a.java", """ class Abc { class FooBar {} void foo() { FooBar<caret>x } }"""); myFixture.complete(CompletionType.BASIC, 2); assertEquals(1, myFixture.getLookupElements().length); }