For me this means looking for env XDG_DATA_HOME, falling back to $HOME/.local/share, adding briar-mailbox. And creating all missing dirs with mode 0700 (possibly creating only briar-mailbox, and failing if path until there is not present).
We could also use XDG_DATA_HOME at briar-headless/briar-desktop, but I don't know how that would translate to Windows/macOS. Currently ~/.briar gets translated to C:\Users\[user]\.briar.
If you're mainly looking for something else than java.io.File I would think that Path and Files from nio are sound choices, but I don't know kotlin so well yet