public static void showAtRight(@NotNull Component component, @NotNull JPopupMenu menu) {
    menu.show(component, component.getWidth(), 0);
  }
public static void showAtRight(@NotNull Component component, @NotNull JPopupMenu menu)