void (int tabPlacement) { JBTabsPosition position = switch (tabPlacement) { case SwingConstants.TOP -> JBTabsPosition.top; case SwingConstants.BOTTOM -> JBTabsPosition.bottom; case SwingConstants.LEFT -> JBTabsPosition.left; case SwingConstants.RIGHT -> JBTabsPosition.right; default -> throw new IllegalArgumentException("Invalid tab placement code=" + tabPlacement); }; myTabs.getPresentation().setTabsPosition(position); }