public static boolean isAncestor(@NotNull VirtualFile root, @NotNull FilePath path) {
    return isAncestor(root.getPath(), path.getPath(), false);
  }
public static boolean isAncestor(@NotNull VirtualFile root, @NotNull FilePath path)