public static @NotNull ToolWindowAnchor get(@MagicConstant(intValues = {SwingConstants.CENTER, SwingConstants.TOP, SwingConstants.LEFT, SwingConstants.BOTTOM, SwingConstants.RIGHT}) int swingOrientationConstant) {
    return switch (swingOrientationConstant) {
      case SwingConstants.TOP -> TOP;
      case SwingConstants.BOTTOM -> BOTTOM;
      case SwingConstants.LEFT -> LEFT;
      case SwingConstants.RIGHT -> RIGHT;
      default -> throw new IllegalArgumentException("Unknown anchor constant: " + swingOrientationConstant);
    };
  }
public static @NotNull ToolWindowAnchor get(@MagicConstant(intValues = {SwingConstants.CENTER, SwingConstants.TOP, SwingConstants.LEFT, SwingConstants.BOTTOM, SwingConstants.RIGHT}) int swingOrientationConstant)