pmd: fix #1106 PMD 5.0.4 fails with NPE on parsing java enum with inner class instance creation