public boolean shouldRestartConnector() {
        return isRestarting(stateInfo.connector());
    }
Determine whether the {@link Connector} instance is to be restarted
based upon the {@link #restartRequest() restart request}.

@return true if the {@link Connector} instance is to be restarted, or false otherwise
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartPlan.java