Reports method calls whose target is another method call.

Example:

  class X { Y foo() { return new Y(); } }
  class Y { X bar() { return new X(); } }

  void foo() {
    Y y = new X().foo(); // Chained method call
  }

Use the inspection options to toggle warnings for the following cases: