private static int
getAccessibleMethods(Class<?> clazz, ClassMap.MethodInfo[] methodInfos, int upcastCount)