What are the rules for legalizing the stay of Ukrainian citizens who do not have valid documents and have been in Poland for some time (before the war)?

Ukrainian citizens residing in Poland without valid documents should as soon as possible contact an organization providing legal advice to foreigners in order to obtain individual legal advice. At present, the Polish authorities declare that they will suspend deportation to Ukraine.