Integer (@NotNull final LookupElement item, @NotNull final CompletionLocation location) { PrioritizedLookupElement<?> prioritized = item.as(PrioritizedLookupElement.CLASS_CONDITION_KEY); return prioritized != null ? prioritized.getExplicitProximity() : 0; }