Example of RefsCommandParameters for ScmService


I am trying to modify a plugin which worked on 7.x to the new APIs for 8.x

I am trying to update a line in the plugin, specifically:

heads has been deprecated:

I can’t figure out the replacement which says to use RefsCommandParameters

I am just looking for an example of RefsCommandParameters to complete the change as follows:
scmService.getCommandFactory(repository).refs(refsCommandParameters, refCallback).call();

It looks to be a Builder but I have no idea what parameters to use.