private static boolean doWhileStatementsAreEquivalent(
     @NotNull PsiDoWhileStatement statement1, @NotNull PsiDoWhileStatement statement2) {
   final PsiExpression condition1 = statement1.getCondition();
   final PsiExpression condition2 = statement2.getCondition();
   final PsiStatement body1 = statement1.getBody();
   final PsiStatement body2 = statement2.getBody();
   return expressionsAreEquivalent(condition1, condition2)
       && statementsAreEquivalent(body1, body2);
 }
 @Override
 public void visitDoWhileStatement(PsiDoWhileStatement statement) {
   super.visitDoWhileStatement(statement);
   final PsiExpression condition = statement.getCondition();
   check(condition, statement);
 }