void () { myFixture.configureByText("MainTest.java", """ public class MainTest { public static void ma<caret>in(String[] args) { someCode(); } }"""); List<GutterMark> marks = myFixture.findGuttersAtCaret(); assertEquals(1, marks.size()); GutterIconRenderer mark = (GutterIconRenderer)marks.get(0); AnAction[] children = mark.getPopupMenuActions().getChildren(TestActionEvent.createTestEvent()); String message = ExecutionBundle.message("create.run.configuration.action.name"); AnAction action = ContainerUtil.find(children, t -> { if (t.getTemplateText() == null) return false; return t.getTemplateText().startsWith(message); }); assertNotNull(action); myFixture.testAction(action); AnActionEvent event = TestActionEvent.createTestEvent(); action.update(event); assertTrue(event.getPresentation().getText().startsWith(message)); ContainerUtil.addIfNotNull(myTempSettings, RunManager.getInstance(getProject()).getSelectedConfiguration()); }