From the description and method name it is not clear what it actually does. Should it be named like `withSnippet`?