private _NSMethod methodOnObject(Object targetObject) throws NoSuchMethodException {
if (targetObject == null)
throw new IllegalArgumentException("Target object cannot be null");
_NSMethod method = _methodOnObject(targetObject);
Class<?> targetClass = targetObject.getClass();
if (method == null)
throw new NoSuchMethodException("Class " + targetClass.getName() + " does not implement method " + _NSReflectionUtilities._methodSignature(_name, _types));
return method;