MouseListener (@NotNull JComponent component, @NotNull String groupId, @NotNull String place) { Supplier<ActionGroup> actionGroupSupplier = () -> (ActionGroup)CustomActionsSchema.getInstance().getCorrectedAction(groupId); PopupHandler popupHandler = PopupHandler.installPopupMenu(component, new PopupComputableActionGroup(actionGroupSupplier), place); PopupMenuPreloader.install(component, place, popupHandler, actionGroupSupplier); return popupHandler; }