void () { new X().<warning descr="Chained method call 'foo()'">foo</warning>().<warning descr="Chained method call 'bar()'">bar</warning>(); (new X().<warning descr="Chained method call 'foo()'">foo</warning>()).<warning descr="Chained method call 'bar()'">bar</warning>(); String s = new StringBuilder().append("x: ").append(new X()).append("y: ").append(new Y()).toString(); }