public static int getAvailablePhysicalCoresNumber() {
    var availableCores = Runtime.getRuntime().availableProcessors();
    return IS_HT_SMT_ENABLED ? availableCores / 2 : availableCores;
  }
public static int getAvailablePhysicalCoresNumber()