code: @SuppressWarnings("null")
    public static Page getAbsoluteParent(@NotNull Page page, int parentLevel, @NotNull ResourceResolver resourceResolver) {
      PageManager pageManager = resourceResolver.adaptTo(PageManager.class);
      String absoluteParentPath = getAbsoluteParent(page.getPath(), parentLevel, resourceResolver);
      if (StringUtils.isEmpty(absoluteParentPath)) {
        return null;
      }
      return pageManager.getPage(absoluteParentPath);
    }
docs: Get absolute parent of given path.
  If the path is a version history or launch path the path level is adjusted accordingly.
  This is a replacement for {@link Page#getAbsoluteParent(int)}.
  @param page Page
  @param parentLevel Parent level
  @param resourceResolver Resource resolver
  @return Absolute parent page or null if path is invalid