TRUNK-5085 Add checkstyle rule UnusedImports
we already flag unused imports using codacy but the rule is currently
manually configured in the codacy UI using the PMD checker.
* add the checkstyle rule which flags introduction of UnusedImports as
error so we keep the style in the repository and do not rely on manual
configurations in codacy