GitRemoteBranch (@NotNull GitRepository repository, @NotNull GitRemote remote, @NotNull @NonNls String branchName) { GitRemoteBranch remoteBranch = findRemoteBranch(repository, remote, branchName); return ObjectUtils.notNull(remoteBranch, new GitStandardRemoteBranch(remote, branchName)); }