Check if the method is an original Object method

The method can be an override of original Object method.
ReflectionUtils.isObjectMethod(method) only check if the same method exists in Object.
So in order to check if the method is really from Object class or is from overrided method,
it needs to explicitly check method.getDeclaringClass() with Object.class