private static @Nullable JpsSdk<?> findValidSdk(@NotNull CompileContext context) {
      Set<JpsSdk<?>> sdks = context.getProjectDescriptor().getProjectJavaSdks();
      JpsSdk<?> javaSdk = null;
      for (JpsSdk<?> sdk : sdks) {
        JpsSdkType<? extends JpsElement> sdkType = sdk.getSdkType();
        if (sdkType instanceof JpsJavaSdkType && JpsJavaSdkType.getJavaVersion(sdk) >= 9) {
          javaSdk = sdk;
          break;
        }
      }
      return javaSdk;
    }
private static @Nullable JpsSdk<?> findValidSdk(@NotNull CompileContext context)