private static @NotNull JBTabsPosition swingConstantToEnum(int tabPlacement) {
    return 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);
    };
  }
private static @NotNull JBTabsPosition swingConstantToEnum(int tabPlacement)