code: public void checkCloudSdk(CloudSdk cloudSdk, String version)
        throws CloudSdkVersionFileException, CloudSdkNotFoundException, CloudSdkOutOfDateException {
      if (!version.equals(cloudSdk.getVersion().toString())) {
        throw new RuntimeException(
            "Specified Cloud SDK version ("
                + version
                + ") does not match installed version ("
                + cloudSdk.getVersion()
                + ").");
      }
  
      cloudSdk.validateCloudSdk();
    }
docs: Validates the cloud SDK installation
  
  @param cloudSdk CloudSdk with a configured sdk home directory