List<RunConfiguration> (@NotNull State state, @NotNull Project project) { List<RunConfiguration> configurations = new ArrayList<>(); RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(project); List<RunConfigurationDescriptor> descriptors = ContainerUtil.notNullize(state.myEnabledRunConfigurations); for (RunConfigurationDescriptor descriptor : descriptors) { if (descriptor.myType != null && descriptor.myName != null) { RunnerAndConfigurationSettings settings = runManager.findConfigurationByTypeAndName(descriptor.myType, descriptor.myName); RunConfiguration configuration = settings != null ? settings.getConfiguration() : null; if (configuration != null) { configurations.add(configuration); } } } return configurations; }