sometimes I find that several PMD rules conflict with each other, so you cannot write code that satisfies all the PMD rules.
For example, it seems that the following two rules are mutually exclusive: "Assigning a null object is the smell of code. Consider refactoring." as well as "The method should have only one exit point, and this should be the last expression in the method"
Below is my sample code:

get1(), , get2(), . , , , PMD, " null - ", - ? :)