void () { doTest("class X {" + " void m() {" + " class A {" + " class B {" + " }" + " }" + " Class<?> clazz = /*Instantiating object to get Class object*/new A()/*_*/.new B().getClass()/**/;" + " }" + "}"); checkQuickFix(InspectionGadgetsBundle.message("instantiating.object.to.get.class.object.replace.quickfix"), "class X {" + " void m() {" + " class A {" + " class B {" + " }" + " }" + " Class<?> clazz = A.B.class;" + " }" + "}"); }