void () { configureByFile(BASE_PATH + getTestName(false) + ".java"); final PsiClass psiClass = ((PsiJavaFile)getFile()).getClasses()[0]; Assert.assertNotNull(psiClass); final PsiClass targetClass = psiClass.findInnerClassByName("D", false); Assert.assertNotNull(targetClass); new MockIntroduceConstantHandler(targetClass).invoke(getProject(), getEditor(), getFile(), null); checkResultByFile(BASE_PATH + getTestName(false) + "_after.java"); }