@Override
  public int compare(PsiElement element1, PsiElement element2) {
    final int offset1 = element1.getTextOffset();
    final int offset2 = element2.getTextOffset();
    return offset1 - offset2;
  }
@Override
  public int compare(PsiElement element1, PsiElement element2)