void () { UISettings.getInstance().setSortLookupElementsLexicographically(true); myFixture.addClass("package foo; public class ELXaaaaaaaaaaaaaaaaaaaa {}"); invokeCompletion(getTestName(false) + ".java"); myFixture.completeBasic(); LookupImpl lookup = getLookup(); assertPreferredItems(lookup.getList().getSelectedIndex()); TestCase.assertEquals("ELXaaaaaaaaaaaaaaaaaaaa", lookup.getItems().get(0).getLookupString()); TestCase.assertEquals("ELXEMENT_A", lookup.getCurrentItem().getLookupString()); }