void (@NotNull Collection<? extends HighlightInfo> infos, @NotNull String intentionActionName, @NotNull Editor editor, @NotNull PsiFile file) { List<IntentionAction> actions = getIntentionActions(infos, editor, file); IntentionAction intentionAction = LightQuickFixTestCase.findActionWithText(actions, intentionActionName); if (intentionAction == null) { fail("Could not find action '" + intentionActionName+ "'.\nAvailable actions: [" +StringUtil.join(ContainerUtil.map(actions, c -> c.getText()), ", ")+ "]\n" + "HighlightInfos: [" +StringUtil.join(infos, ", ")+"]"); } CodeInsightTestFixtureImpl.invokeIntention(intentionAction, file, editor); }