question: public List < Snapshot > currentSnapshots ( String repositoryName ) { List < Snapshot > snapshotList = new ArrayList < > ( ) ; List < SnapshotsInProgress . Entry > entries = currentSnapshots ( repositoryName , null ) ; for ( SnapshotsInProgress . Entry entry : entries ) { snapshotList . add ( inProgressSnapshot ( entry ) ) ; } CollectionUtil . timSort ( snapshotList ) ; return Collections . unmodifiableList ( snapshotList ) ; }
target:  Returns a list of currently running snapshots from repository sorted by snapshot creation date