public static @NlsContexts.Tooltip String getTooltipText(@InspectionMessage String[] messages) {
    if (messages.length == 0) return null;

    HtmlChunk.Element contents = HtmlChunk.tag("td");
    int len = Math.min(messages.length, 10);
    for (int i = 0; i < len; i++) {
      if (i != 0) {
        contents = contents.child(MESSAGE_DELIMITER);
      }
      contents = contents.addText(messages[i]);
    }
    if (messages.length > 10) {
      contents = contents.child(MESSAGE_DELIMITER)
        .addText("...");
    }
    HtmlChunk emptyCell = HtmlChunk.tag("td").addText("&nbsp;");
    return new HtmlBuilder().append(
      HtmlChunk.tag("table").child(
        HtmlChunk.tag("tr").children(emptyCell, contents, emptyCell)))
      .wrapWithHtmlBody().toString();
  }
public static @NlsContexts.Tooltip String getTooltipText(@InspectionMessage String[] messages)