When you save a snippet to Pieces from JetBrains, you're also automatically saving:
All of this context is editable later from the Pieces for JetBrains plugin or from the Pieces desktop app.