void () { configureByFile(BASE_PATH + getTestName(false) + ".java"); final PsiClass[] classes = ((PsiJavaFile)getFile()).getClasses(); Assert.assertTrue(classes.length == 2); final PsiClass targetClass = classes[1]; Assert.assertNotNull(targetClass); new MockIntroduceConstantHandler(targetClass){ @Override protected String getVisibility() { return VisibilityUtil.ESCALATE_VISIBILITY; } }.invoke(getProject(), getEditor(), getFile(), null); checkResultByFile(BASE_PATH + getTestName(false) + "_after.java"); }