@NotNull
 @Override
 public Comparable weigh(@NotNull LookupElement element) {
   final PsiTypeLookupItem lookupItem = element.as(PsiTypeLookupItem.CLASS_CONDITION_KEY);
   if (lookupItem != null) {
     return lookupItem.getBracketsCount() * 10 + (lookupItem.isAddArrayInitializer() ? 1 : 0);
   }
   return 0;
 }
 @NotNull
 @Override
 public Comparable weigh(@NotNull LookupElement element) {
   final PsiTypeLookupItem lookupItem = element.as(PsiTypeLookupItem.CLASS_CONDITION_KEY);
   if (lookupItem != null) {
     return lookupItem.getBracketsCount();
   }
   if (element.as(CastingLookupElementDecorator.CLASS_CONDITION_KEY) != null) {
     return 239;
   }
   return 0;
 }