void (final String testIndex, @NonNls String targetClassName) { configureByFile("/refactoring/replaceConstructorWithFactory/before" + testIndex + ".java"); perform(targetClassName); checkResultByFile("/refactoring/replaceConstructorWithFactory/after" + testIndex + ".java"); }