void () { myFixture.addClass("package junit.framework; public class TestCase {}"); myFixture.configureByText("MainTest.java", """ public class Main<caret>Test extends junit.framework.TestCase { public void testFoo() { } }"""); myFixture.doHighlighting(); CachedIntentions intentions = IntentionsUI.getInstance(getProject()).getCachedIntentions(getEditor(), getFile()); intentions.wrapAndUpdateGutters(); assertThat(intentions.getAllActions().get(0).getText()).startsWith("Run "); }