void () { doTest("class /*'X' is 'Cloneable' but does not define 'clone()' method*//*_*/X/**/ implements Cloneable {}" + "class Y extends X {}" + "class Z implements Cloneable {" + " Z copy() {" + " try {" + " return (Z)clone();" + " } catch (CloneNotSupportedException ignore) {" + " return null;" + " }" + " }" + "}"); checkQuickFix(InspectionGadgetsBundle.message("remove.cloneable.quickfix"), "class X {}" + "class Y extends X {}" + "class Z implements Cloneable {" + " Z copy() {" + " try {" + " return (Z)clone();" + " } catch (CloneNotSupportedException ignore) {" + " return null;" + " }" + " }" + "}"); }