void () { doTest("import java.util.*;" + "class X {" + " void m() {" + " Class<? extends ArrayList> aClass = /*Instantiating object to get Class object*/(new ArrayList</* 1*/String>())/*_*/./* 2*/getClass()/**/;" + " }" + "}"); checkQuickFix(InspectionGadgetsBundle.message("instantiating.object.to.get.class.object.replace.quickfix"), "import java.util.*;" + "class X {" + " void m() {" + " /* 1*/" + " /* 2*/ Class<? extends ArrayList> aClass = ArrayList.class;" + " }" + "}"); }