private static String getMouseButtonText(int buttonNum) {
    return switch (buttonNum) {
      case MouseEvent.BUTTON1 -> "MouseLeft";
      case MouseEvent.BUTTON2 -> "MouseMiddle";
      case MouseEvent.BUTTON3 -> "MouseRight";
      default -> "NoMouseButton";
    };
  }
private static String getMouseButtonText(int buttonNum)