private static @Nullable Module createModuleFromProjectBuilder(
    @NotNull Project project,
    @NotNull ProjectBuilder builder
  ) {
    var modules = builder.commit(project, null, new DefaultModulesProvider(project));
    if (builder.isOpenProjectSettingsAfter()) {
      ModulesConfigurator.showDialog(project, null, null);
    }
    return modules == null || modules.isEmpty() ? null : modules.get(0);
  }
private static @Nullable Module createModuleFromProjectBuilder(
    @NotNull Project project,
    @NotNull ProjectBuilder builder
  )