Ownership of such property may be considered by the court. But, if you did samostroy on the ground on which you have no rights and the owner (user) of the land objects to the recognition of property rights on the property, built in his possession, then the object is subject to demolition.
Related article: The real estate market in Kiev - shortage of cheap housingIn the case at samostroya not designated for that area, the practice is by recognizing the right of ownership to such a structure, if the person who illegally erected a property on the ground, not set aside for this purpose, a plot of land was already constructed object. Also, if the owner (user) of land illegally constructed object that does not violate the rights of others.
Second - this is a simplistic way under the transitional provisions of the Law of Ukraine "On the Regulation of Urban Planning" on March 12, 2011