Point (@NotNull Component target, @NotNull Point point) { if (target != myNativeComponent && myNativeComponent instanceof ScalableComponent scalableComponent) { double zoom = scalableComponent.getScale(); if (zoom != 1) { point = new Point(point); point.x *= zoom; point.y *= zoom; } } return myNativeComponent == target ? new Point(point) : SwingUtilities.convertPoint(myNativeComponent, point, target); }