code: public static <T> Predicate<T> in(final Collection<T> c) {
      return new Predicate<T>() {
        @Override
        public boolean apply(T obj) {
          return c.contains(obj);
        }
      };
    }
docs: Returns a predicate that evaluates to {@code true} if its
  argument is a member of {@code c}.