public PartitionChangeBuilder setDefaultDirProvider(DefaultDirProvider defaultDirProvider) {
        this.defaultDirProvider = defaultDirProvider;
        return this;
    }
Prefer replicas in the ISR but keep the partition online even if it requires picking a leader that is not in the ISR.
metadata/src/main/java/org/apache/kafka/controller/PartitionChangeBuilder.java