Just found this commit at Scala project: https://github.com/scala/scala/commit/eb2375cc5327293c708226e78f80a97cc780a12f

The new signature of `contains` is for eliminating warnings when `-Ywarn-infer-any` is turned on.