@Override
  public int compare(PsiImportDeclaration importStatementDeclaration1, PsiImportDeclaration importStatementDeclaration2) {
    int type1 = getCompareType(importStatementDeclaration1);
    int type2 = getCompareType(importStatementDeclaration2);
    if (type1 != type2) {
      return type1 > type2 ? -1 : 1;
    }
    // just sort on demand imports first, and sort the rest in reverse file order.
    return -PsiElementOrderComparator.getInstance().compare(importStatementDeclaration1, importStatementDeclaration2);
  }
@Override
  public int compare(PsiImportDeclaration importStatementDeclaration1, PsiImportDeclaration importStatementDeclaration2)