private boolean acceptsHttpGet(Method method) { if (method.isAnnotationPresent(Get.class)) { return true; } for (HttpMethod httpMethod : HttpMethod.values()) { if (method.isAnnotationPresent(httpMethod.getAnnotation())) { return false; } } return true; }