code: private void processMethods(final Object component, final Context context,
              final ContextDestroyer contextDestroyer) {
          Class<?> componentClass = component.getClass();
          while (componentClass != null && !componentClass.equals(Object.class)) {
              final Method[] methods = ClassReflection.getDeclaredMethods(componentClass);
              if (methods != null && methods.length > 0) {
                  processMethods(component, methods, context, contextDestroyer);
              }
              componentClass = componentClass.getSuperclass();
          }
      }
docs: Scans class tree of component to process all its methods.
  
  @param component all methods of its class tree will be processed.
  @param context used to resolve dependencies.
  @param contextDestroyer used to register destruction callbacks.