void replacePattern(@NotNull Statement statement,
                        @Nullable Exprent guard,
                        @NotNull Statement caseStatement,
                        @Nullable VarExprent assignedName) {
      PatternStatement patternStatement = new PatternStatement(statement, guard, caseStatement, assignedName);
      ArrayList<PatternStatement> patterns = new ArrayList<>();
      patterns.add(patternStatement);
      patternsByStatement.put(statement, patterns);
    }
void replacePattern(@NotNull Statement statement,
                        @Nullable Exprent guard,
                        @NotNull Statement caseStatement,
                        @Nullable VarExprent assignedName)