This might be useful:
https://github.com/lintool/tools/blob/master/lintools-datatypes/src/main/java/tl/lin/data/queue/TopScoredObjects.java