public static String removeTags(String text, List<Tag> tagsToRemove) {
    if (StringUtils.isBlank(text)) {
      return text;
    }
    var textCopy = new AtomicReference<>(text);
    tagsToRemove.forEach(tagToRemove -> textCopy.set(removeTag(textCopy.get(), tagToRemove)));
    return textCopy.get();
  }
@Test
  public void removeTags_mixedCarriageReturns () {
    var text = "some text\n" + TAG1.getText() + " other following text ending with " + TAG2.getText();
    var expected = "some text\n other following text ending with " + TAG2.getText();

    var result = TagsHelper.removeTags(text, singletonList(TAG1));

    assertEquals(expected, result);
  }