I create a lot of tests using the TestNG framework. I find myself often needing data providers. A data provider supplies test data for a test method. Their structure is often identical. To save myself some time I created a dynamic code snippet for it in IntelliJ.
Here is a picture of how that looks like:
I copied the configuration from IntelliJ and put it in a github gist to share: