void () { configureByFile(TEST_ROOT + getTestName(false) + ".java"); PsiElement element = TargetElementUtil.findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED); assertTrue(element instanceof PsiClass); PsiClass aClass = (PsiClass)element; boolean addClassParameter = MakeStaticUtil.isParameterNeeded(aClass); new MakeClassStaticProcessor( getProject(), aClass, new Settings(true, addClassParameter ? "anObject" : null, null)).run(); checkResultByFile(TEST_ROOT + getTestName(false) + "_after.java"); }