@Deprecated
  public static boolean isGitRoot(@NotNull File folder) {
    try {
      return isGitRoot(folder.toPath());
    }
    catch (InvalidPathException e) {
      LOG.warn(e.getMessage());
      return false;
    }
  }
@Deprecated
  public static boolean isGitRoot(@NotNull File folder)