void (@NotNull Component componentToShow, @Nullable Runnable onDone) { String name = generateOrGetName(componentToShow, slidingPanel); slidingPanel.add(name, componentToShow); slidingPanel.getLayout().swipe(slidingPanel, name, JBCardLayout.SwipeDirection.FORWARD, onDone); }