public List<TimerangePreset> convert(final Map<Period, String> timerangeOptions) {
        if (timerangeOptions == null) {
            return List.of();
        }
        return timerangeOptions.entrySet()
                .stream()
                .map(entry -> new TimerangePreset(
                        periodConverter.apply(entry.getKey()),
                        entry.getValue())
                )
                .collect(Collectors.toList());
    }
@Test
    void testConversionReturnsEmptyListOnNullInput() {
        assertThat(toTest.convert(null)).isEmpty();
    }