void (String lookupString, double expectedPriority) { LookupElement lookupElement = findLookupElement(lookupString); final PrioritizedLookupElement<?> prioritizedLookupElement = lookupElement.as(PrioritizedLookupElement.CLASS_CONDITION_KEY); assertNotNull(prioritizedLookupElement); assertEquals(expectedPriority, prioritizedLookupElement.getPriority()); }