void () { checkPreferredItems(0, "MyEnum.bar", "MyEnum", "MyEnum.foo"); int unrelatedItem = ContainerUtil.indexOf(myFixture.getLookupElementStrings(), it -> it.contains("Throwable")); incUseCount(unrelatedItem); //nothing should change assertPreferredItems(0, "MyEnum.bar", "MyEnum", "MyEnum.foo"); }