public static List<Common.MessageFormatting> dbMessageFormattingListToWs(@Nullable List<DbIssues.MessageFormatting> dbFormattings) {
    if (dbFormattings == null) {
      return List.of();
    }
    return dbFormattings.stream()
      .map(f -> Common.MessageFormatting.newBuilder()
        .setStart(f.getStart())
        .setEnd(f.getEnd())
        .setType(Common.MessageFormattingType.valueOf(f.getType().name())).build())
      .toList();
  }
@Test
  public void nullFormattingListShouldBeEmptyList() {
    assertThat(MessageFormattingUtils.dbMessageFormattingListToWs(null)).isEmpty();
  }