private boolean hasActiveExternalCalls(Collection<Call> calls) {
            for (Call call : calls) {
                if (!call.isInternal()) {
                    return true;
                }
            }
            return false;
        }
Unassign calls that have not yet been sent based on some predicate. For example, this
is used to reassign the calls that have been assigned to a disconnected node.

@param shouldUnassign Condition for reassignment. If the predicate is true, then the calls will
                      be put back in the pendingCalls collection and they will be reassigned
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java