public static @NotNull JPanel wrapWithHorizontalStretch(@NotNull JComponent component) {
    JPanel panel = new JPanel(new BorderLayout(0, 0));
    panel.add(component, BorderLayout.NORTH);
    return panel;
  }
public static @NotNull JPanel wrapWithHorizontalStretch(@NotNull JComponent component)