Fixes pmd violation