void () { doTest(new MockIntroduceVariableHandler("b", true, false, false, "A.B") { @Override public IntroduceVariableSettings getSettings(Project project, Editor editor, PsiExpression expr, PsiExpression[] occurrences, TypeSelectorManagerImpl typeSelectorManager, boolean declareFinalIfAll, boolean anyAssignmentLHS, InputValidator validator, PsiElement anchor, final JavaReplaceChoice replaceChoice) { final PsiType type = typeSelectorManager.getDefaultType(); assertEquals(type.getPresentableText(), "B", type.getPresentableText()); return super.getSettings(project, editor, expr, occurrences, typeSelectorManager, declareFinalIfAll, anyAssignmentLHS, validator, anchor, replaceChoice); } }); }