public static void showByEvent(@NotNull MouseEvent event, @NotNull JPopupMenu menu) {
    menu.show(event.getComponent(), event.getX(), event.getY());
  }
public static void showByEvent(@NotNull MouseEvent event, @NotNull JPopupMenu menu)