docs: public void scan(JavaBackend javaBackend, Method method, Class<?> glueCodeClass) {
          Annotation[] methodAnnotations = method.getAnnotations();
          for (Annotation annotation : methodAnnotations) {
              if (isHookAnnotation(annotation)) {
                  validateMethod(method, glueCodeClass);
                  javaBackend.addHook(annotation, method);
              } else if (isStepdefAnnotation(annotation)) {
                  validateMethod(method, glueCodeClass);
                  javaBackend.addStepDefinition(annotation, method);
              }
          }
      }