void () { checkPreferredItems(0, "put", "putAll"); myFixture.type("\n"); assertTrue(myFixture.getEditor().getDocument().getText().contains("put")); myFixture.type(");\nsuper."); myFixture.completeBasic(); assertPreferredItems(0, "get"); }