public static @NotNull Point getCenterOf(@NotNull Component aContainer, @NotNull JComponent content) {
    return getCenterOf(aContainer, content.getPreferredSize());
  }
public static @NotNull Point getCenterOf(@NotNull Component aContainer, @NotNull JComponent content)