void () { configureByFile("/refactoring/introduceParameter/before" + getTestName(false) + ".java"); boolean enabled = true; try { configureByFile("/refactoring/introduceParameter/before" + getTestName(false) + ".java"); enabled = getEditor().getSettings().isVariableInplaceRenameEnabled(); getEditor().getSettings().setVariableInplaceRenameEnabled(false); new IntroduceParameterHandler().invoke(getProject(), getEditor(), getFile(), DataContext.EMPTY_CONTEXT); checkResultByFile("/refactoring/introduceParameter/after" + getTestName(false) + ".java"); } finally { getEditor().getSettings().setVariableInplaceRenameEnabled(enabled); } }