[TIDOC-975] Fix generated documentation for instance methods