Polishness of some topologies related to word or tree automata (Logical Methods in Computer Science, 2019)