Use wildcards for model collection generic type in Pipeline