@Nullable
    @SuppressWarnings("ReturnValueIgnored")
    private static MethodHandle detectMethod(final String name) {
        if (operatingSystemBeanClass == null) {
            return null;
        }
        try {
            // ensure the Bean we have is actually an instance of the interface
            operatingSystemBeanClass.cast(operatingSystemBean);
            final Method method = operatingSystemBeanClass.getMethod(name);
            return LOOKUP.unreflect(method);
        } catch (ClassCastException | NoSuchMethodException | SecurityException | IllegalAccessException e) {
            logger.warn("Failed to detect method {}.{} for {}", operatingSystemBeanClass.getSimpleName(),
                        name, CpuHealthChecker.class.getSimpleName(), e);
            return null;
        }
    }
Instantiates a new Default cpu health checker.

@param targetSystemCpuUsage the target cpu usage
@param targetProcessCpuUsage the target process cpu usage
core/src/main/java/com/linecorp/armeria/server/healthcheck/CpuHealthChecker.java