docs: private void attach(JComponent componentToBeDecorated) {
          detach();
  
          decoratedComponent = componentToBeDecorated;
  
          if (decoratedComponent != null) {
              decoratedComponent.addComponentListener(decoratedComponentTracker);
              decoratedComponent.addAncestorListener(decoratedComponentTracker);
              decoratedComponent.addHierarchyBoundsListener(decoratedComponentTracker);
              decoratedComponent.addHierarchyListener(decoratedComponentTracker);
              decoratedComponent.addPropertyChangeListener("enabled", decoratedComponentTracker);
              decoratedComponent.addPropertyChangeListener("ancestor", decoratedComponentTracker);
  
              attachToLayeredPane();
          }
      }