private @Nullable LookupElement getComparableQualifier() {
    final CastingLookupElementDecorator casting = myQualifier.as(CastingLookupElementDecorator.CLASS_CONDITION_KEY);
    LookupElement qualifier = casting == null ? myQualifier : casting.getDelegate();
    if (qualifier.getObject() instanceof PsiClass) return null;
    return qualifier;
  }
private @Nullable LookupElement getComparableQualifier()