void () { configureByFile(TEST_ROOT + getTestName(true) + ".java"); AnonymousToInnerHandler handler = new AnonymousToInnerHandler(){ @Override protected boolean showRefactoringDialog() { myNewClassName = "MyObject"; myMakeStatic = !needsThis(); VariableInfo info = myVariableInfos[0]; info.fieldName = "myFast"; info.parameterName = "fast"; myVariableInfos = new VariableInfo[] {info}; return true; } }; handler.invoke(getProject(), getEditor(), getFile(), null); checkResultByFile(TEST_ROOT + getTestName(true) + "_after.java"); }