Gonna be a contrarian for a moment.
There's nothing wrong with editing an answer (citing the "why edit a post" section of the help page for editing) to clarify the meaning of a post without changing it (excepting the correction of "minor" mistakes).
You might want to note that the only guideline for avoiding an edit on the basis of size alone is that if the edit is not substantial enough. So if your edit is substantial, you then have two important questions to ask about your edit:
Will your edit of the post not meaningfully change what it means? This should be a "No".
Will your edit meaningfully clarify what it means? This should be a "Yes".
If you sincerely have no doubts about those, go for it. Exactly what constitutes meaningful change is to some extent going to be a matter of opinion. If you don't think you could justify these answers to someone, then don't edit. Leave a comment or add an additional answer & cite the original answer if appropriate.
In this specific case, adding examples of how to deal with non public methods does not change the original meaning of the post and does clarify it. I would argue your edit abides by the guidelines currently set out.
I will say that you would have also been justified in adding your own answer if you were to have chosen that course of action instead.