@ApiStatus.Obsolete
  public static boolean isUnderGit(@NotNull FilePath path) {
    try {
      return findGitRootFor(Paths.get(path.getPath())) != null;
    }
    catch (InvalidPathException e) {
      LOG.warn(e.getMessage());
      return false;
    }
  }
@ApiStatus.Obsolete
  public static boolean isUnderGit(@NotNull FilePath path)