This commit also reverts to using ReflectionUtils.findMethod in order to make the check more robust in case the Micrometer team refactors the code base and declares the `getObservationRegistry()` method in a super type.
This commit also reverts to using ReflectionUtils.findMethod in order to make the check more robust in case the Micrometer team refactors the code base and declares the `getObservationRegistry()` method in a super type.