void () { doTestClassWithMain(() -> { RunManager manager = RunManager.getInstance(getProject()); ApplicationConfiguration test = new ApplicationConfiguration("MainTest.main()", getProject()); test.setMainClass(myFixture.findClass("MainTest")); RunnerAndConfigurationSettingsImpl settings = new RunnerAndConfigurationSettingsImpl((RunManagerImpl)manager, test); manager.addConfiguration(settings); myTempSettings.add(settings); }); }