Added hasNestedType(Class<?>)