@Contract(pure = true)
  public static @NotNull String expandUserHome(@NotNull String path) {
    if (path.equals("~")) {
      return SystemProperties.getUserHome();
    }
    else if (path.startsWith("~/") || path.startsWith("~\\")) {
      return SystemProperties.getUserHome() + path.substring(1);
    }
    else {
      return path;
    }
  }
@Contract(pure = true)
  public static @NotNull String expandUserHome(@NotNull String path)