void (RunConfiguration configuration, int marksCount) { JUnit5TestFrameworkSetupUtil.setupJUnit5Library(myFixture); myFixture.addClass("package org.junit.jupiter.api; public @interface Disabled {}"); RunManager manager = RunManager.getInstance(myFixture.getProject()); RunnerAndConfigurationSettings runnerAndConfigurationSettings = new RunnerAndConfigurationSettingsImpl((RunManagerImpl)manager,configuration); manager.addConfiguration(runnerAndConfigurationSettings); myTempSettings.add(runnerAndConfigurationSettings); manager.setSelectedConfiguration(runnerAndConfigurationSettings); myFixture.configureByText("DisabledMethodTest.java", """ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; class DisabledMethodTest { @Disabled @Test public void testDisabled<caret>() {} } """); List<GutterMark> marks = myFixture.findGuttersAtCaret(); assertEquals(marksCount, marks.size()); }