void (@NotNull PsiIfStatement statement) { final PsiIfStatement other = (PsiIfStatement)myMatchingVisitor.getElement(); final PsiStatement elseBranch = statement.getElseBranch(); myMatchingVisitor.setResult(myMatchingVisitor.match(statement.getCondition(), other.getCondition()) && matchBody(statement.getThenBranch(), other.getThenBranch()) && (elseBranch == null || matchBody(elseBranch, other.getElseBranch()))); }