void (String className, String methodName) { doTest(() -> { PsiClass aClass = myFixture.findClass(className); assertNotNull(aClass); PsiMethod method = aClass.findMethodsByName(methodName, false)[0]; final boolean condition = InlineMethodProcessor.checkBadReturns(method) && !InlineUtil.allUsagesAreTailCalls(method); assertFalse("Bad returns found", condition); InlineOptions options = new MockInlineMethodOptions(); final InlineMethodProcessor processor = new InlineMethodProcessor(getProject(), method, null, getEditor(), options.isInlineThisOnly()); processor.run(); }); }