List<Line> (@NotNull List<? extends CharSequence> text, @NotNull ComparisonPolicy policy) { //noinspection SSBasedInspection - Can't use ContainerUtil return text.stream().map(line -> new Line(line, policy)).collect(Collectors.toList()); }