Module (final String name) { final ModifiableModuleModel model = getModuleManager().getModifiableModel(); final Module module = model.newModule(ProjectKt.getStateStore(myProject).getProjectBasePath().resolve(name + ".iml"), EmptyModuleType.getInstance().getId()); commitModel(model); return module; }