class LinkageMonitor {

  @VisibleForTesting
  static String messageForFixedErrors(Set<LinkageProblem> fixedProblems) {
    int problemSize = fixedProblems.size();
    StringBuilder message =
        new StringBuilder(
            "The following problem"
                + (problemSize > 1 ? "s" : "")
                + " in the baseline no longer appear in the snapshot:\n");
    for (LinkageProblem problem : fixedProblems) {
      message.append("  " + problem.formatSymbolProblem() + "\n");
    }
    return message.toString();
  }

}