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