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;
<BUG>class ContainsAssertionVisitor extends PsiRecursiveElementVisitor{
</BUG>
private boolean containsAssertion = false;
<BUG>public void visitElement(@NotNull PsiElement element){

if(!containsAssertion){
</BUG>
super.visitElement(element);

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);
