Fix PMD warnings about unused parameters.