Integer (@NotNull LookupElement element, @NotNull CompletionLocation location) { PrioritizedLookupElement<?> prioritized = element.as(PrioritizedLookupElement.CLASS_CONDITION_KEY); if (prioritized != null) { return prioritized.getGrouping(); } return 0; }