@Override
  public @NotNull JsonElement toJson(@NotNull Object bean, @Nullable SerializationFilter filter) {
    @SuppressWarnings("unchecked")
    List<String> list = (List<String>)accessor.read(bean);
    if (list.isEmpty()) {
      return new JsonArray(Collections.emptyList());
    }

    List<JsonElement> content = new ArrayList<>();
    for (String item : list) {
      content.add(JsonElementKt.JsonPrimitive(JDOMUtil.removeControlChars(item)));
    }
    return new JsonArray(content);
  }
@Override
  public @NotNull JsonElement toJson(@NotNull Object bean, @Nullable SerializationFilter filter)