@Override
    void cleanup(@NotNull CommentTracker ct, PsiElementFactory factory, PsiIfStatement ifStatement) {
      if (isEquivalent()) {
        super.cleanup(ct, factory, ifStatement);
        return;
      }
      String type = myThenVariable.getType().getCanonicalText();
      PsiExpression thenInitializer = myThenVariable.getInitializer();
      PsiStatement thenAssignment = createAssignment(thenInitializer, type, myNewVariableName, ifStatement, factory);
      if (thenAssignment != null) {
        getThenStatement().replace(thenAssignment);
      }
      PsiExpression elseInitializer = myElseVariable.getInitializer();
      PsiStatement elseAssignment = createAssignment(elseInitializer, type, myNewVariableName, ifStatement, factory);
      if (elseAssignment != null) {
        ct.replace(getElseStatement(), elseAssignment);
      }
    }
@Override
    void cleanup(@NotNull CommentTracker ct, PsiElementFactory factory, PsiIfStatement ifStatement)