public function isDrupalVmLocallyInitialized() {
    if (is_null($this->isDrupalVmLocallyInitialized)) {
      $this->isDrupalVmLocallyInitialized = $this->isVmCli() || $this->getConfigValue('vm.enable');
      $statement = $this->isDrupalVmLocallyInitialized ? "is" : "is not";
      $this->logger->debug("Drupal VM $statement initialized.");
    }

    return $this->isDrupalVmLocallyInitialized;
  }