void (@NotNull String expectedRefName, @NotNull String expectedRemoteName) { GitPushTarget target = GitPushTarget.getFromPushSpec(repo, Objects.requireNonNull(this.repo.getCurrentBranch())); assertNotNull(target); assertTrue(target.isSpecialRef()); assertEquals(expectedRefName, target.getPresentation()); GitRemoteBranch remoteBranch = target.getBranch(); assertRemoteBranch(expectedRefName, expectedRefName, expectedRemoteName, remoteBranch); }