List<AnAction> (@NotNull List<? extends AnAction> actions, @NotNull DataContext context) { for (AnAction action : actions) { if (action instanceof StopAction) { return new SmartList<>(action); } } return Collections.emptyList(); }