In our project using Scala 2.12 we have copied the ChainingOps from Scala 2.13. We use it a lot and we have added one more method: pipeIf - when the predicate is
pipeIf