void (String expected, @NotNull List<LoadingOrder.Orderable> list) { LoadingOrder.Companion.sortByLoadingOrder(list); String sequence = list.stream().map(o -> ((MyOrderable)o).getName()).collect(Collectors.joining(" ")); assertEquals(expected, sequence); }