void (@NotNull Module module) { ModifiableRootModel model = ModuleRootManager.getInstance(module).getModifiableModel(); for (WizardInputField<?> field : getAdditionalFields()) { ProjectTemplateParameterFactory factory = WizardInputField.getFactoryById(field.getId()); if (factory != null) { factory.applyResult(field.getValue(), model); } } applyProjectDefaults(module.getProject()); for (ProjectTemplateParameterFactory factory : ProjectTemplateParameterFactory.EP_NAME.getExtensionList()) { String value = factory.getImmediateValue(); if (value != null) { factory.applyResult(value, model); } } model.commit(); RunManager runManager = RunManager.getInstance(module.getProject()); for (RunConfiguration configuration : runManager.getAllConfigurationsList()) { if (configuration instanceof ModuleBasedConfiguration) { ((ModuleBasedConfiguration<?, ?>)configuration).getConfigurationModule().setModule(module); } } }