@NotNull
  protected static String getPresentableCurrentBranchName(Repository repository) {
    String branchName = repository.getCurrentBranchName();
    if (branchName != null) return branchName;

    String revision = repository.getCurrentRevision();
    if (revision != null) return DvcsUtil.getShortHash(revision);

    return VcsBundle.message("diff.title.local");
  }
@NotNull
  protected static String getPresentableCurrentBranchName(Repository repository)