static bool isPrimitiveBoolField(O o, S field) { Field f = findField2(o, field); ret f != null && eq(f.getType(), bool.class); }