private static boolean isSnapshotFile(Path path) {
        return Files.isRegularFile(path) && path.getFileName().toString().endsWith(LogFileUtils.PRODUCER_SNAPSHOT_FILE_SUFFIX);
    }
Removes the producer state snapshot file metadata corresponding to the provided offset if it exists from this
ProducerStateManager, and renames the backing snapshot file to have the Log.DeletionSuffix.
<p>
Note: This method is safe to use with async deletes. If a race occurs and the snapshot file
is deleted without this ProducerStateManager instance knowing, the resulting exception on
SnapshotFile rename will be ignored and {@link Optional#empty()} will be returned.
storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java