public static boolean isHttpMethodAvailable(Method method){
  return method.isAnnotationPresent(GET.class) || method.isAnnotationPresent(PUT.class) || method.isAnnotationPresent(POST.class)|| method.isAnnotationPresent(DELETE.class)|| method.isAnnotationPresent(HEAD.class)|| method.isAnnotationPresent(OPTIONS.class);
}

public static boolean isHttpMethodAvailable ( Method method ) { return method . isAnnotationPresent ( GET . class ) || method . isAnnotationPresent ( PUT . class ) || method . isAnnotationPresent ( POST . class ) || method . isAnnotationPresent ( DELETE . class ) || method . isAnnotationPresent ( HEAD . class ) || method . isAnnotationPresent ( OPTIONS . class ) ; }
check if http verb is available for the method .
