Add patterns for IntelliJ to gitignore file.