code: private AnnotationMirror isRestMethod( ExecutableElement method, Consumes baseConsumes, Produces baseProduces ) {
          AnnotationMirror httpMethod = null;
          for ( AnnotationMirror m : method.getAnnotationMirrors() ) {
              if ( m.getAnnotationType().toString().equals( GenRestIgnore.class.getName() ) ) {
                  return null;
              }
  
              if ( m.getAnnotationType().toString().equals( GET.class.getName() ) ) {
                  httpMethod = m;
              } else if ( m.getAnnotationType().toString().equals( POST.class.getName() ) ) {
                  httpMethod = m;
              } else if ( m.getAnnotationType().toString().equals( PUT.class.getName() ) ) {
                  httpMethod = m;
              } else if ( m.getAnnotationType().toString().equals( DELETE.class.getName() ) ) {
                  httpMethod = m;
              } else if ( m.getAnnotationType().toString().equals( HEAD.class.getName() ) ) {
                  httpMethod = m;
              }
          }
  
          String[] consumes = getConsumes( baseConsumes, method );
          if( consumes != null && consumes.length > 0 && getFirstJsonType( consumes ) == null ) {
              return null;
          }
          String[] produces = getProduces( baseProduces, method );
          if( produces != null && produces.length > 0 && getFirstJsonType( produces ) == null ) {
              return null;
          }
  
          return httpMethod;
      }
docs: Check if the method is a REST method. If the method has a HTTP method annotation like {@link GET} and is not ignored with {@link
  GenRestIgnore} then it's a REST method.
  
  @param method the method to check
  
  @return the HTTP method annotation found or null if the method is not a REST method or is ignored