public static List<Common.MessageFormatting> dbMessageFormattingToWs(@Nullable DbIssues.MessageFormattings dbFormattings) {
    if (dbFormattings == null) {
      return List.of();
    }
    return dbMessageFormattingListToWs(dbFormattings.getMessageFormattingList());
  }
@Test
  public void singleEntryShouldBeIdentical() {
    DbIssues.MessageFormattings formattings = DbIssues.MessageFormattings.newBuilder()
      .addMessageFormatting(DbIssues.MessageFormatting.newBuilder()
        .setStart(0)
        .setEnd(4)
        .setType(DbIssues.MessageFormattingType.CODE)
        .build())
      .build();

    assertThat(MessageFormattingUtils.dbMessageFormattingToWs(
      formattings).get(0))
        .extracting(e -> e.getStart(), e -> e.getEnd(), e -> e.getType())
        .containsExactly(0, 4, Common.MessageFormattingType.CODE);
  }