public boolean hasIncomingFor(@Nullable GitRepository repository, @NotNull String localBranchName) {
    return shouldCheckIncoming() && getBranchesWithIncoming(repository).contains(new GitLocalBranch(localBranchName));
  }
public boolean hasIncomingFor(@Nullable GitRepository repository, @NotNull String localBranchName)