As a follow-up of #28977 and as discussed with @snicoll, let's add a TypeHint.Builder#onReachableType overloaded method with a Class parameter since this use case is very common.