void (int replaceFieldsWithGetters, boolean removeUnusedParameters, boolean searchForSuper, boolean declareFinal, boolean generateDelegate, String conflict) { boolean enabled = true; try { configureByFile("/refactoring/introduceParameter/before" + getTestName(false) + ".java"); enabled = getEditor().getSettings().isVariableInplaceRenameEnabled(); getEditor().getSettings().setVariableInplaceRenameEnabled(false); perform(IntroduceVariableBase.JavaReplaceChoice.ALL, replaceFieldsWithGetters, "anObject", searchForSuper, declareFinal, removeUnusedParameters, generateDelegate); checkResultByFile("/refactoring/introduceParameter/after" + getTestName(false) + ".java"); if (conflict != null) { fail("Conflict expected"); } } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { if (conflict == null) { throw e; } assertEquals(conflict, e.getMessage()); } finally { getEditor().getSettings().setVariableInplaceRenameEnabled(enabled); } }