public List<String> deprecationPaths(Flow flow) {
        return deprecationTraversal("", flow).toList();
    }
@SuppressWarnings("deprecation")
    @Test
    void propertyRenamingDeprecation() {
        Flow flow = Flow.builder()
            .id("flowId")
            .namespace("io.kestra.unittest")
            .inputs(List.of(
                StringInput.builder()
                    .id("inputWithId")
                    .type(Type.STRING)
                    .build(),
                StringInput.builder()
                    .name("inputWithName")
                    .type(Type.STRING)
                    .build()
            ))
            .tasks(Collections.singletonList(Echo.builder()
                .id("taskId")
                .type(Return.class.getName())
                .format("test")
                .build()))
            .build();

        assertThat(flowService.deprecationPaths(flow), containsInAnyOrder("inputs[1].name", "tasks[0]"));
    }