static @Nullable PsiType getLookupElementType(@NotNull LookupElement element) {
    TypedLookupItem typed = element.as(TypedLookupItem.CLASS_CONDITION_KEY);
    return typed != null ? typed.getType() : null;
  }
static @Nullable PsiType getLookupElementType(@NotNull LookupElement element)