Add a new line between the previous if statement, like this
```
    folder.mkdir();
}

try {
```