void () { configureByFile("beforeConflictingFieldInContainingClassLocal.java"); new MockIntroduceFieldHandler(BaseExpressionToFieldHandler.InitializationPlace.IN_FIELD_DECLARATION, false) { @Override protected String getNewName(Project project, PsiExpression expr, PsiType type) { return "aField"; } @Override protected int getChosenClassIndex(List<PsiClass> classes) { return 0; } }.invoke(getProject(), getEditor(), getFile(), null); checkResultByFile("afterConflictingFieldInContainingClassLocal.java"); }