private static boolean isChild(@NotNull List<String> parent, @NotNull List<String> descendant) {
    return descendant.size() > parent.size() && descendant.subList(0, parent.size()).equals(parent);
  }
private static boolean isChild(@NotNull List<String> parent, @NotNull List<String> descendant)