Data type(s) of the type parameter(s) in method '|2' cannot be inferred from these arguments because more than one type is ...