public String toString() {
      if (myAnchor instanceof PsiInstanceOfExpression) {
        var patternVariableWrappers = JavaPsiPatternUtil.collectPatternVariableWrappers(myAnchor);
        StringBuilder sb = new StringBuilder();
        for (var patternVariableWrapper : patternVariableWrappers) {
          String initializer = patternVariableWrapper.getEffectiveInitializerText();
          if (initializer != null) {
            PsiPatternVariable variable = patternVariableWrapper.getVariable();
            sb.append(variable.getTypeElement().getText()).append(" ").append(variable.getName()).append("=")
              .append(initializer).append(";");
          }
        }
        return sb.toString();
      }
      return myAnchor.getText() + ";";
    }
public String toString()