private static List<List<Character>> findMatch(String p, Map<String, String> rules) {
        String result = null;
        if (!rules.containsKey(p)) {
            String[] a = p.split("/");
            for (String key : rules.keySet()) {
                if (equals(key, a, false)) {
                    result = rules.get(key);
                }
            }
        } else {
            result = rules.get(p);
        }

        List<List<Character>> list = new ArrayList<>();
        String[] ar = result.split("/");
        for (int i = 0; i < ar.length; i++) {
            List<Character> ll = new ArrayList<>();
            for (int j = 0; j < ar[i].length(); j++) {
                ll.add(ar[i].charAt(j));
            }
            list.add(ll);
        }
        return list;
    }
Why Did you create this class? what does it do?
src/adventofcode/FractalArt_21.java