@Override
  public int compareTo(GitReference o) {
    if (o instanceof GitStandardRemoteBranch) {
      // optimization: do not build getFullName
      return REFS_NAMES_COMPARATOR.compare(myName, o.myName);
    }
    return super.compareTo(o);
  }
@Override
  public int compareTo(GitReference o)