void () { configureByFile("beforeForcedFieldType.java"); new MockIntroduceFieldHandler(BaseExpressionToFieldHandler.InitializationPlace.IN_CURRENT_METHOD, false) { @Override protected PsiType getFieldType(PsiType type) { return PsiTypes.intType(); } }.invoke(getProject(), getEditor(), getFile(), null); checkResultByFile("afterForcedFieldType.java"); }