ActionListener (@NotNull String actionId, @NotNull Component component, @NotNull String place) { return e -> { AnAction action = getAction(actionId); if (action == null) { return; } invokeAction(action, component, place, null, null); }; }