if(methodExpression == null){
</BUG>
return;
}
<BUG>@NonNls final String methodName = methodExpression.getReferenceName();
if(methodName == null)
{
return;
}
if(methodName.startsWith("assert") || methodName.startsWith("fail")){
</BUG>
containsAssertion = true;

import com.intellij.psi.PsiMethodCallExpression;
import com.intellij.psi.PsiRecursiveElementVisitor;
import com.intellij.psi.PsiReferenceExpression;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.NonNls;
class ContainsAssertionVisitor extends PsiRecursiveElementVisitor {
private boolean containsAssertion = false;
public void visitElement(@NotNull PsiElement element) {
if (!containsAssertion) {
super.visitElement(element);
