void () { addModifierList(); myFixture.configureByText("a.java", """ class Foo { static void foo(ModifierList ml) { ml.hasModifierProperty(<caret>) } } """); myFixture.complete(CompletionType.SMART); myFixture.assertPreferredCompletionItems(0, "PROTECTED", "PUBLIC"); }