code: public static String createSummary(final TasksResult result) {
          StringBuilder summary = new StringBuilder();
          int tasks = result.getNumberOfAnnotations();
  
          summary.append(Messages.Tasks_ResultAction_Summary());
          summary.append(" ");
          if (tasks > 0) {
              summary.append("<a href=\"tasksResult\">");
          }
          if (tasks == 1) {
              summary.append(Messages.Tasks_ResultAction_OneWarning());
          }
          else {
              summary.append(Messages.Tasks_ResultAction_MultipleWarnings(tasks));
          }
          if (tasks > 0) {
              summary.append("</a>");
          }
          summary.append(" ");
          if (result.getNumberOfFiles() > 1) {
              summary.append(Messages.Tasks_ResultAction_MultipleFiles(result.getNumberOfFiles()));
          }
          else {
              summary.append(Messages.Tasks_ResultAction_OneFile());
          }
          summary.append(".");
          return summary.toString();
      }
docs: CHECKSTYLE:CONSTANTS-OFF