private boolean isAnnotatedWithConfiguration(final Class<?> clazz) {
        final Configuration configurationAnnotation = AnnotationUtils.findAnnotation(clazz, Configuration.class);
        return configurationAnnotation != null;
    }
Checks whether the given class is annotated with {@link Configuration}.

@param clazz The class to check.
@return True, if the given class is annotated with {@link Configuration}. False otherwise.
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/inject/GrpcClientBeanPostProcessor.java