code: public <T> Predicate<T> in (final Collection<? extends T> target)
      {
          return new Predicate<T>() {
              public boolean apply (T arg) {
                  try {
                      return target.contains(arg);
                  } catch (NullPointerException e) {
                      return false;
                  } catch (ClassCastException e) {
                      return false;
                  }
              }
          };
      }
docs: Returns a predicate that evaluates to true if the object reference being tested is a member
  of the given collection.