sbool canCallWithVarargs(O o, S method, O... args) { if (o == null) false; if (o instanceof Class) { Class c = (Class) o; _MethodCache cache = callOpt_getCache(c); if (cache.findStaticMethod(method, args) != null) true; // try varargs L methods = cache.cache.get(method); if (methods != null) methodSearch: for (Method m : methods) { continue unless m.isVarArgs() && isStaticMethod(m); if (massageArgsForVarArgsCall(m, args) != null) true; } } else { Class c = o.getClass(); _MethodCache cache = callOpt_getCache(c); if (cache.findMethod(method, args) != null) true; // try varargs L methods = cache.cache.get(method); if (methods != null) methodSearch: for (Method m : methods) { continue unless m.isVarArgs(); if (massageArgsForVarArgsCall(m, args) != null) true; } } false; }