This rule is defined by the following XPath expression:
//PrimarySuffix [@Image='getClass'] [parent::PrimaryExpression [PrimaryPrefix/AllocationExpression] [count(PrimarySuffix) = 2] ]
Example:
public class Foo { // Replace this Class c = new String().getClass(); // with this: Class c = String.class; }