This top of this answer mostly says Radiodef in the comments above. I do not want to steal these words, but the answer below ---does not really work without a preliminary explanation.
Radiodef, , , , Collection. Collection<?>, :
return ((Collection<?>) value).stream()
.map(MyClass::defaultFormatter)
.collect(Collectors.joining(eol));
, , . , :
Stream<String> stream = ((Collection) value).stream()
.map(MyClass::defaultFormatter);
RHS Stream; Stream<String>, JLS Sec 5.1.9:
(§4.8) G G<T1,...,Tn>.
, , . : , , .
, Stream.collect, Stream raw, , :
Stream.collect(Collector<? super T,A,R> collector) R;R Object
collect Object, . List<String> , List.