private static BuildTargetType<?> toTargetType(ModuleSourceSet set) {
    return switch (set.getType()) {
      case TEST -> JavaModuleBuildTargetType.TEST;
      case PRODUCTION -> JavaModuleBuildTargetType.PRODUCTION;
      case RESOURCES -> ResourcesTargetType.PRODUCTION;
      case RESOURCES_TEST -> ResourcesTargetType.TEST;
    };
  }
private static BuildTargetType<?> toTargetType(ModuleSourceSet set)