docs: private boolean preCheckClusterState(ClusterService clusterService) {
          ClusterState initialState = clusterService.getClusterState();
          if (!initialState.isJoinAllowed()) {
              logger.warning("Could not prepare cluster state since it has been changed to " + initialState);
              return false;
          }
  
          return true;
      }