private static int compareQualifiedNames(PsiMember o1, PsiMember o2) {
    String qname1 = o1 instanceof PsiClass ? ((PsiClass)o1).getQualifiedName() : null;
    String qname2 = o2 instanceof PsiClass ? ((PsiClass)o2).getQualifiedName() : null;
    if (qname1 == null || qname2 == null) return 0;
    return qname1.compareToIgnoreCase(qname2);
  }
private static int compareQualifiedNames(PsiMember o1, PsiMember o2)