final PsiReference ref = fixture.getFile().findReferenceAt(editor.getCaretModel().getOffset());
final PsiReferenceExpression refExpr = ref instanceof PsiReferenceExpression ? (PsiReferenceExpression)ref : null;
final PsiMethod method = (PsiMethod)element;
assert !(InlineMethodProcessor.checkBadReturns(method) && !InlineUtil.allUsagesAreTailCalls(method)) : "Bad returns found";
new InlineMethodProcessor(getProject(), method, refExpr, editor, false).run();
<BUG>}
}.execute();</BUG>
fixture.checkResultByFile(after, false);
}
public static void doInlineConstantTest(@NotNull final CodeInsightTestFixture fixture,

final PsiReference ref = fixture.getFile().findReferenceAt(editor.getCaretModel().getOffset());
final PsiReferenceExpression refExpr = ref instanceof PsiReferenceExpression ? (PsiReferenceExpression)ref : null;
final PsiMethod method = (PsiMethod)element;
assert !(InlineMethodProcessor.checkBadReturns(method) && !InlineUtil.allUsagesAreTailCalls(method)) : "Bad returns found";
new InlineMethodProcessor(getProject(), method, refExpr, editor, false).run();
fixture.checkResultByFile(after, false);
}
public static void doInlineConstantTest(@NotNull final CodeInsightTestFixture fixture,
