private String getDefaultModuleName() {
      var nameTemplate = Registry.stringValue("maven.import.module.name.template");
      var folderName = project.getDirectoryFile().getName();
      var mavenId = project.getMavenId();
      var nameCandidate = switch (nameTemplate) {
        case "folderName" -> folderName;
        case "groupId.artifactId" -> mavenId.getGroupId() + "." + mavenId.getArtifactId();
        case "aggregatorArtifactId.artifactId" -> aggregatorArtifactIdPrefix() + mavenId.getArtifactId();
        default -> mavenId.getArtifactId();
      };
      return isValidName(nameCandidate) ? nameCandidate : folderName;
    }
private String getDefaultModuleName()