class AnnotationExtractor {

    public Set<Method> getCandidateMethods(Class<?> clazz) {
        return Stream.of(ReflectionUtils.getUniqueDeclaredMethods(clazz))
                .filter(method -> method.getDeclaringClass() != Object.class)
                .filter(method -> !(method.isBridge() || method.isSynthetic()))
                .collect(toSet());
    }

    private  AnnotationExtractor();

}