Is this the same as guava `Predicates.instanceOf`? Can we delete this?