I'm using IntelliJ Idea 2016.2.4 Community Edition and I have configured it so it autoformats my code (mostly Java or XML) when saving the file. This unfortunately includes that IntelliJ formats my license header (e.g. Apache license), which I create and validate via a Maven plugin com.mycila:license-maven-plugin.
How can I configure IntelliJ so that it does not reformat the license header?