public static Condition<? super Sdk> filterSdkByWsl(@NotNull Project project) {
    var path = project.getBasePath();
    if (path == null || !WSLUtil.isSystemCompatible()) {
      return Conditions.alwaysTrue();
    }

    var distribution = WslPath.getDistributionByWindowsUncPath(path);
    var projectOnLocalFs = distribution == null;
    return (Condition<Sdk>)sdk -> {
      if (projectOnLocalFs && sdk.getSdkType().allowWslSdkForLocalProject()) {
        return true;
      }
      String sdkHomePath = sdk.getHomePath();
      return sdkHomePath == null || WslPath.getDistributionByWindowsUncPath(sdkHomePath) == distribution;
    };
  }
public static Condition<? super Sdk> filterSdkByWsl(@NotNull Project project)