private static void clearArray(@NotNull AtomicReferenceArray<?> array, boolean clearPhysical) {
    for (int i = clearPhysical ? 0 : 4; i < array.length(); i++) {
      array.set(i, null);
    }
  }
private static void clearArray(@NotNull AtomicReferenceArray<?> array, boolean clearPhysical)