private List<String> getTopicPartitionFileNames(TopicPartition topicPartition) {
        File[] files = getTopicPartitionFiles(topicPartition);
        if (files == null || files.length == 0) {
            throw new IllegalArgumentException(String.format("[BrokerId=%d] Directory for the topic-partition %s " +
                    "was not found", brokerId, topicPartition));
        }
        File topicPartitionDir = files[0];
        return Arrays.stream(Objects.requireNonNull(topicPartitionDir.listFiles()))
                .map(File::getName)
                .collect(Collectors.toList());
    }
Check if the given offset is present in the first local segment of the given topic-partition.
@param topicPartition The topic-partition to check.
@param firstLogFileBaseOffset The base offset of the first local segment.
@param offsetToSearch The offset to search.
@return true if the offset is present in the first local segment, false otherwise.
storage/src/test/java/org/apache/kafka/tiered/storage/utils/BrokerLocalStorage.java