void (@NotNull JComponent component) { ThreadingAssertions.assertEventDispatchThread(); getComponent(); // Make sure component exists component.setOpaque(false); component.setVisible(true); myJLayeredPane.add(component, null, 0); }