class Utils {

    public static List<Method> getAnnotatedMethods(Class<?> clazz, Class<? extends Annotation> ann) {
        List<Method> methods = new ArrayList<>();
        Method[] declared = clazz.getDeclaredMethods();
        for (Method method : declared) {
            if (method.getAnnotation(ann) != null) {
                methods.add(method);
            }
        }
        return methods;
    }

    private  Utils();

}