code: private boolean isHandledByFilter(Method method) {
          // "Resource classes are POJOs that have at least one method annotated
          // with @Path or a request method designator. [...]
          //
          // Resource methods are methods of a resource class annotated with a
          // request method designator. [...] A request method designator is a
          // runtime annotation that is annotated with the @HttpMethod
          // annotation."
          for (Annotation annotation : method.getAnnotations()) {
              if (HttpMethod.class.isAssignableFrom(annotation.annotationType())) {
                  return true;
              }
          }
  
          if (method.isAnnotationPresent(Path.class)) {
              return true;
          }
  
          return false;
      }
docs: Check if the {@code method} is expected to be handled by
  {@code OpentracingContainerFilter}.
  
  @param method Wrapped method.
  @return True if handled by the filter.