Object (@NotNull ActionToolbarPosition position) { return switch (position) { case TOP -> BorderLayout.NORTH; case LEFT -> BorderLayout.WEST; case BOTTOM -> BorderLayout.SOUTH; case RIGHT -> BorderLayout.EAST; }; }