private static <T extends RootUrlPair> boolean isSamePath(@NotNull T child, @NotNull T parent) {
    return parent.getVirtualFile().getPath().equals(child.getVirtualFile().getPath());
  }
private static <T extends RootUrlPair> boolean isSamePath(@NotNull T child, @NotNull T parent)