code: public static <T> Predicate<T> constant(final boolean b) {
      return b
          ? Predicates.<Object, T>narrow(TRUE)
          : Predicates.<Object, T>narrow(FALSE);
    }
docs: Returns the constant predicate that always returns {@code b}.