private @NotNull Set<@NotNull String> findJavaInstalledBySdkMan() {
    try {
      Path candidatesDir = findSdkManCandidatesDir();
      if (candidatesDir == null) return Collections.emptySet();
      Path javasDir = candidatesDir.resolve("java");
      if (!Files.isDirectory(javasDir)) return Collections.emptySet();
      //noinspection UnnecessaryLocalVariable
      var homes = listJavaHomeDirsInstalledBySdkMan(javasDir);
      return homes;
    }
    catch (Exception e) {
      log.warn("Unexpected exception while looking for Sdkman directory: " + e.getClass().getSimpleName() + ": " + e.getMessage(), e);
      return Collections.emptySet();
    }
  }
private @NotNull Set<@NotNull String> findJavaInstalledBySdkMan()