public static @Nls @NotNull String getDisplayableBranchText(@NotNull GitRepository repository) {
    return getDisplayableBranchText(repository, Function.identity());
  }
public static @Nls @NotNull String getDisplayableBranchText(@NotNull GitRepository repository)