code: private static int getAbsoluteLevelOffset(@NotNull String path, @NotNull ResourceResolver resourceResolver) {
      Matcher versionHistoryMatcher = VERSION_HISTORY_PATTERN.matcher(path);
      if (versionHistoryMatcher.matches()) {
        return 3;
      }
      Matcher legacyVersionHistoryMatcher = LEGACY_VERSION_HISTORY_PATTERN.matcher(path);
      if (legacyVersionHistoryMatcher.matches()) {
        if (isTenant(resourceResolver)) {
          legacyVersionHistoryMatcher = LEGACY_VERSION_HISTORY_TENANT_PATTERN.matcher(path);
          if (legacyVersionHistoryMatcher.matches()) {
            return 3;
          }
        }
        return 2;
      }
      Matcher launchesMatcher = LAUNCHES_PATTERN.matcher(path);
      if (launchesMatcher.matches()) {
        return 6;
      }
      return 0;
    }
docs: Calculates offset for absolute level if path is a version history or launch path.
  @param path Path
  @param resourceResolver Resource resolver
  @return 0 or offset if a version history or launch path.