void () { String source = "class X {boolean test() {var x = <caret>;var y = x;var z = y; return z;}}"; myFixture.configureByText("Test.java", source); myFixture.complete(CompletionType.SMART); assertEquals(myFixture.getLookupElementStrings(), Arrays.asList("equals", "false", "true", "test")); }