ExpandedItemRendererComponentWrapper (@NotNull Component rendererComponent) { if (rendererComponent instanceof Accessible) { return new MyComponent(rendererComponent, (Accessible)rendererComponent); } return new ExpandedItemRendererComponentWrapper(rendererComponent); }