void () { myFixture.configureByText(FileTypes.PLAIN_TEXT, "qq<caret>q"); ConfigurationContext context = ConfigurationContext.getFromContext(createDataContext(), ActionPlaces.UNKNOWN); Assert.assertNull(context.findExisting()); Disposable disposable = Disposer.newDisposable(); try { RunConfigurationProducer.EP_NAME.getPoint().registerExtension(new FakeRunConfigurationProducer(""), disposable); List<RunnerAndConfigurationSettings> configs = getConfigurationsFromContext(); Assert.assertEquals(1, configs.size()); for (RunnerAndConfigurationSettings config : configs) { addConfiguration(config); } context = ConfigurationContext.getFromContext(createDataContext(), ActionPlaces.UNKNOWN); RunnerAndConfigurationSettings existing = context.findExisting(); Assert.assertNotNull(existing); Assert.assertTrue(existing.getConfiguration() instanceof FakeRunConfiguration); } finally { Disposer.dispose(disposable); } context = ConfigurationContext.getFromContext(createDataContext(), ActionPlaces.UNKNOWN); Assert.assertNull(context.findExisting()); }