`getProject()` cannot be `null` or it would have failed a few lines above. I doubt the `getGenerateDirectory()` can be `null` either.