Assumptions for this example:
You have a class, foo.bar.Baz.
You'd like to create a run configuration that runs the main method.
It's in a module called fooBar.
In your gradle file:
idea {
workspace.iws.withXml { provider ->
// I'm not actually sure why this is necessar...