code: @SuppressWarnings("unchecked")
      public static Map<String, List<Path>> findJavaHomes() {
          try {
              return (Map<String, List<Path>>) accessible(Class.forName(CAPSULE_CLASS_NAME).getDeclaredMethod("getJavaHomes")).invoke(null);
          } catch (ReflectiveOperationException e) {
              throw new AssertionError(e);
          }
      }
docs: Returns all known Java installations
  
  @return a map from the version strings to their respective paths of the Java installations.