public static @NotNull LookupElement withPriority(@NotNull LookupElement element, double priority) {
    PrioritizedLookupElement<?> prioritized = element.as(CLASS_CONDITION_KEY);
    LookupElement finalElement = prioritized != element ? element : prioritized.getDelegate();
    int proximity = prioritized == null ? 0 : prioritized.getExplicitProximity();
    int grouping = prioritized == null ? 0 : prioritized.getGrouping();
    return new PrioritizedLookupElement<>(finalElement, priority, proximity, grouping);
  }
public static @NotNull LookupElement withPriority(@NotNull LookupElement element, double priority)