void () { myFixture.configureByText(JavaFileType.INSTANCE, "\nclass Foo {\n final Integer field;\n \n { field = 42; }\n \n Foo() {\n equals(f<caret>); \n } \n}"); complete(); myFixture.assertPreferredCompletionItems(0, "field"); }