class WrapperProcessor implements BeanPostProcessor, ApplicationContextAware {

    static boolean isValidWrapper(Wrapper wrapper) {
        if (wrapper == null) {
            return true;
        }
        AtomicBoolean isValid = new AtomicBoolean(true);
        ReflectionUtils.doWithFields(wrapper.getClass(), field -> {
            final Autowired annotation = AnnotationUtils.findAnnotation(field, Autowired.class);
            if (annotation != null) {
                isValid.set(false);
            }
        });
        return isValid.get();
    }

}