fun <R> File.collect(collector: Collector<R>): List<R>
Collecting information from file with collector, the supported file types are as follows: