String (@NotNull String homePath) { if (SystemInfo.isMac) { Path home = Path.of(homePath, "/Home"); if (Files.exists(home)) return home.toString(); home = Path.of(homePath, "Contents/Home"); if (Files.exists(home)) return home.toString(); } return homePath; }