void (@NotNull final CodeInsightTestFixture fixture, @NotNull final String before, @NotNull final String after) { fixture.configureByFile(before); final Editor editor = fixture.getEditor(); final PsiElement element = TargetElementUtil.findTargetElement(editor, TARGET_FOR_INLINE_FLAGS); assert element instanceof PsiField : element; final PsiReference ref = fixture.getFile().findReferenceAt(editor.getCaretModel().getOffset()); final PsiReferenceExpression refExpr = ref instanceof PsiReferenceExpression ? (PsiReferenceExpression)ref : null; new InlineConstantFieldProcessor((PsiField)element, fixture.getProject(), refExpr, false).run(); fixture.checkResultByFile(after, false); }