static bool isSubtypeOf(Class a, Class b) { ret a != null && b != null && b.isAssignableFrom(a); // << always hated that method, let's replace it! }