public static <A> F1<A, Boolean> byClass(final Class<?> clazz) {
        return new F1<A, Boolean>() {public Boolean e(A obj) {
            return clazz.isAssignableFrom(obj.getClass());
        }};
    }