It means that in such case if you want to use the new collect instead of the deprecated one, you need to properly annotate the ErrorHandler (there FailOnError) with the result type: FailOnError[List[T]]