public static @NotNull RelativePoint getCenterOf(@NotNull JComponent component) {
    return new AnchoredPoint(AnchoredPoint.Anchor.CENTER, component);
  }
public static @NotNull RelativePoint getCenterOf(@NotNull JComponent component)