private static int getVersionFromWslCli(@NotNull WSLDistribution distribution) {
    try {
      final List<WslDistributionAndVersion> versions = WslDistributionManager.getInstance().loadInstalledDistributionsWithVersions();
      final WslDistributionAndVersion distributionAndVersion =
        ContainerUtil.find(versions, version -> version.getDistributionName().equals(distribution.getMsId()));
      if (distributionAndVersion != null) {
        return distributionAndVersion.getVersion();
      }
      LOG.warn("WSL distribution '" + distribution.getMsId() + "' not found");
    }
    catch (IOException | IllegalStateException e) {
      LOG.warn("Failed to calculate version for " + distribution.getMsId() + ": " + e.getMessage());
    }
    return -1;
  }
private static int getVersionFromWslCli(@NotNull WSLDistribution distribution)