JpsRunConfiguration (List<JpsRunConfiguration> configurations, String name) { for (JpsRunConfiguration configuration : configurations) { if (configuration.getName().equals(name)) { return configuration; } } throw new AssertionFailedError("'" + name + "' run configuration not found"); }