void handleSegmentWithCopySegmentStartedState(RemoteLogSegmentId remoteLogSegmentId) {
        // Add this to unreferenced set of segments for the respective leader epoch.
        unreferencedSegmentIds.add(remoteLogSegmentId);
    }
Returns all the segments associated with this leader epoch sorted by start offset in ascending order.

@param idToSegmentMetadata mapping of id to segment metadata. This will be used to get RemoteLogSegmentMetadata
                           for an id to be used for sorting.
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/RemoteLogLeaderEpochState.java