IntentionAction (@NotNull List<? extends IntentionAction> actions, @NotNull String text) { for (IntentionAction action : actions) { if (text.equals(action.getText())) { return action; } } return null; }