code: public void attachController(BaseComponent comp, IAutoWired controller) {
          plugin.tryRegisterListener(controller, true);
          comp.wireController(controller);
      }
docs: Attaches a controller to the specified component and registers any recognized listeners to
  the plugin.
  
  @param comp Target component.
  @param controller Controller to attach.