void () { configureByFile("beforeConflictingFieldInContainingClass.java"); new MockIntroduceFieldHandler(BaseExpressionToFieldHandler.InitializationPlace.IN_FIELD_DECLARATION, false) { @Override protected String getNewName(Project project, PsiExpression expr, PsiType type) { return "aField"; } }.invoke(getProject(), getEditor(), getFile(), null); checkResultByFile("afterConflictingFieldInContainingClass.java"); }