void () { final CloneableImplementsCloneInspection inspection = new CloneableImplementsCloneInspection(); inspection.m_ignoreCloneableDueToInheritance = false; myFixture.enableInspections(inspection); doTest("class /*'X' is 'Cloneable' but does not define 'clone()' method*/X/**/ implements Cloneable {}" + "class /*'Y' is 'Cloneable' but does not define 'clone()' method*/Y/**/ extends X {}" + "class Z implements Cloneable {" + " Z copy() {" + " try {" + " return (Z)clone();" + " } catch (CloneNotSupportedException ignore) {" + " return null;" + " }" + " }" + "}"); }