public List<String> warnings(Flow flow) {
        if (flow == null) {
            return Collections.emptyList();
        }

        List<String> warnings = new ArrayList<>();
        if (flow.getNamespace() != null && flow.getNamespace().equals(systemFlowNamespace)) {
            warnings.add("The system namespace is reserved for background workflows intended to perform routine tasks such as sending alerts and purging logs. Please use another namespace name.");
        }

        List<AbstractTrigger> triggers = flow.getTriggers();
        if (
            triggers != null &&
                triggers.stream().anyMatch(trigger -> {
                    if (trigger instanceof io.kestra.plugin.core.trigger.Flow flowTrigger) {
                        return Optional.ofNullable(flowTrigger.getConditions()).map(List::isEmpty).orElse(true);
                    }

                    return false;
                    })
        ) {
            warnings.add("This flow will be triggered for EVERY execution of EVERY flow on your instance. We recommend adding the conditions property to the Flow trigger.");
        }

        return warnings;
    }
@Test
    void warnings() {
        Flow flow = create("test", "test", 1).toBuilder()
            .namespace("system")
            .triggers(List.of(
                io.kestra.plugin.core.trigger.Flow.builder()
                    .id("flow-trigger")
                    .type(io.kestra.plugin.core.trigger.Flow.class.getName())
                    .build()
            ))
            .build();

        List<String> warnings = flowService.warnings(flow);

        assertThat(warnings.size(), is(2));
        assertThat(warnings, containsInAnyOrder(
            "The system namespace is reserved for background workflows intended to perform routine tasks such as sending alerts and purging logs. Please use another namespace name.",
            "This flow will be triggered for EVERY execution of EVERY flow on your instance. We recommend adding the conditions property to the Flow trigger."
        ));
    }