IntroduceVariableSettings (Project project, Editor editor, PsiExpression expr, PsiExpression[] occurrences, TypeSelectorManagerImpl typeSelectorManager, boolean declareFinalIfAll, boolean anyAssignmentLHS, InputValidator validator, PsiElement anchor, JavaReplaceChoice replaceChoice) { final IntroduceVariableSettings variableSettings; if (ApplicationManager.getApplication().isUnitTestMode()) { variableSettings = new UnitTestMockVariableSettings(expr); } else { variableSettings = super.getSettings(project, editor, expr, occurrences, typeSelectorManager, declareFinalIfAll, anyAssignmentLHS, validator, anchor, replaceChoice); } return getIntroduceVariableSettings(project, variableSettings); }