It was deleted it without me getting any say or objection.
Yes, that is how deletion normally works on Stack Overflow. Your content is licensed, including to Stack Exchange Inc., under a Creative Commons license; the company is not providing a hosting service to you. If you want to ensure that your content stays up, put it on a blog.
Most people don't read all of the comments anyway.
They don't read all the answers, either. Especially not when there are more than a hundred of them, all of them somehow addressing a single IDE warning.
And obviously my answer had value or it would not have been changed to a community wiki years ago.
If you look at the question, you'll notice that all of the answers have been changed to community wiki. This is not actually a mark of approval or quality. If anything, it's a mark (very inconsistently applied) of importance of the question.
That said, I'm a little confused. You call this "my answer", and seem invested in its continued existence on the site; yet at the same time you acknowledge that it is a cross-post of someone else's work, and don't seem to have any problem with your creation of the answer being de-emphasized (by marking it as community wiki). Do you not sense an internal contradiction there? Yes, there was a +166 next to text that resulted from you pressing keys. But you were not going to get more reputation from further upvotes, and it wasn't your thought in the first place.
Aside from that, the moderator's feedback (I assume this is a form comment) was clear:
Do not duplicate entire answers from other questions. If it is a duplicate question then vote to close as such and/or leave a comment once you earn enough reputation.
If an answer can be cross-posted like that and make sense, the question is a textbook duplicate. We don't want duplicates hanging around unrecognized. We want to drive traffic to the canonical version of a question. Content can be migrated from one question to another by moderators, in a way that preserves the authorship record; but usually it's deemed sufficient to use the duplicate-marking system, which generates backlinks to other versions of the question.