public static boolean hasAnnotations(Class<?> c, Class <? extends java.lang.annotation. Annotation> annotationClass ) {
        if (c.isAnnotationPresent(annotationClass)) {
            System.out.println("c.getAnnotation(): " + c.getAnnotation(annotationClass));
            System.out.println("c.isAnnotationPresent("+annotationClass.getName()+")");
        }
        for (Method method : c.isInterface() ? c.getMethods() : c.getDeclaredMethods()) {
            System.out.println("method: " + method);
            if (method.isAnnotationPresent(annotationClass)) {
                System.out.println("method.isAnnotationPresent("+annotationClass.getName()+")");
            }
            for (Annotation ann : method.getAnnotations()) {
                System.out.println("Annotation: " + ann);
            }
        }
        return false;
    }