docs: public static boolean declaresException(Method method, Class<?> exceptionType) {
  		Assert.notNull(method, "Method must not be null");
  		Class<?>[] declaredExceptions = method.getExceptionTypes();
  		for (Class<?> declaredException : declaredExceptions) {
  			if (declaredException.isAssignableFrom(exceptionType)) {
  				return true;
  			}
  		}
  		return false;
  	}