List<String> (@NotNull GitRepository repository) { return repository.getBranches().getRemoteBranches().stream(). sorted(REMOTE_BRANCH_COMPARATOR). map(GitRemoteBranch::getNameForRemoteOperations).collect(toList()); }