docs: private long getPreviousSegmentId(File file) {
          PbdSegmentName segmentName = PbdSegmentName.parseFile(m_usageSpecificLog, file);
          if (segmentName.m_result != PbdSegmentName.Result.OK) {
              throw new IllegalStateException("Invalid file name: " + file.getName());
          }
          return segmentName.m_prevId;
      }