IntentionAction (@NotNull String intentionName, String @NotNull ... filePaths) { List<IntentionAction> intentions = getAvailableIntentions(filePaths); IntentionAction action = CodeInsightTestUtil.findIntentionByText(intentions, intentionName); if (action == null) { LOG.debug(intentionName + " not found among " + StringUtil.join(intentions, IntentionAction::getText, ",")); } return action; }